Update gtest-param-util.h

This commit is contained in:
Derek Brown 2022-06-03 09:07:42 -07:00 committed by GitHub
parent d547273268
commit 364eeb5d89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -652,9 +652,9 @@ class ParameterizedTestSuiteInfo : public ParameterizedTestSuiteInfoBase {
};
typedef ::std::vector<InstantiationInfo> InstantiationContainer;
static std::string validParamChars = "_-:/";
static bool IsValidParamName(const std::string& name) {
static constexpr validParamChars = "_-:/";
// Check for empty string
if (name.empty()) return false;