mirror of
https://github.com/google/googletest.git
synced 2024-12-27 02:01:25 +08:00
Improve error message for invalid parameterized test names.
PiperOrigin-RevId: 574992011 Change-Id: Id6030a9e5f317966186cc48ef2c09ad97fa15d3e
This commit is contained in:
parent
9bb354fa83
commit
116b7e5528
@ -584,8 +584,8 @@ 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 (contains spaces, dashes, underscores, or "
|
<< "' is invalid (contains spaces, dashes, or any "
|
||||||
"non-alphanumeric characters), in "
|
"non-alphanumeric characters other than underscores), in "
|
||||||
<< file << " line " << line << "" << std::endl;
|
<< file << " line " << line << "" << std::endl;
|
||||||
|
|
||||||
GTEST_CHECK_(test_param_names.count(param_name) == 0)
|
GTEST_CHECK_(test_param_names.count(param_name) == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user