Improve error message for invalid parameterized test names.

PiperOrigin-RevId: 574992011
Change-Id: Id6030a9e5f317966186cc48ef2c09ad97fa15d3e
This commit is contained in:
Abseil Team 2023-10-19 13:54:41 -07:00 committed by Copybara-Service
parent 9bb354fa83
commit 116b7e5528

View File

@ -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)