mirror of
https://github.com/google/googletest.git
synced 2024-12-27 18:31:21 +08:00
Improve error message for invalid parameterized test names.
PiperOrigin-RevId: 557910190 Change-Id: Ia965a6c96e4cc5997d8af2611abc62c42e81653e
This commit is contained in:
parent
987e225614
commit
f42da0e443
@ -584,7 +584,9 @@ class ParameterizedTestSuiteInfo : public ParameterizedTestSuiteInfoBase {
|
|||||||
|
|
||||||
GTEST_CHECK_(IsValidParamName(param_name))
|
GTEST_CHECK_(IsValidParamName(param_name))
|
||||||
<< "Parameterized test name '" << param_name
|
<< "Parameterized test name '" << param_name
|
||||||
<< "' is invalid, in " << file << " line " << line << std::endl;
|
<< "' is invalid (contains spaces, dashes, underscores, or "
|
||||||
|
"non-alphanumeric characters), in "
|
||||||
|
<< file << " line " << line << "" << std::endl;
|
||||||
|
|
||||||
GTEST_CHECK_(test_param_names.count(param_name) == 0)
|
GTEST_CHECK_(test_param_names.count(param_name) == 0)
|
||||||
<< "Duplicate parameterized test name '" << param_name << "', in "
|
<< "Duplicate parameterized test name '" << param_name << "', in "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user