diff options
author | Abseil Team <absl-team@google.com> | 2020-01-14 05:41:46 (GMT) |
---|---|---|
committer | vslashg <gfalcon@google.com> | 2020-01-16 18:55:45 (GMT) |
commit | 0b024bd91a14a77a7e7d6072ccd88e09c86ddeaa (patch) | |
tree | 78c316c82a0281387d5b1959eb6cafcd68848c0b /googletest/src/gtest-internal-inl.h | |
parent | ed16134fb31382fd41e8fe513a0e9e940d04cd31 (diff) | |
download | googletest-0b024bd91a14a77a7e7d6072ccd88e09c86ddeaa.zip googletest-0b024bd91a14a77a7e7d6072ccd88e09c86ddeaa.tar.gz googletest-0b024bd91a14a77a7e7d6072ccd88e09c86ddeaa.tar.bz2 |
Googletest export
Add GTEST_ALLOW_UNINSTANTIATED_PARAMTERIZED_TEST to mark a paramaterized test as allowed to be un-instantiated.
This allows test suites, that are defined in libraries and, for other reasons, get linked in (which should probably be avoided, but isn't always possible) to be marked as allowed to go uninstantiated.
This can also be used to grandfather existing issues and expedite adoption of the checks with regards to new cases before they can be fixed.
PiperOrigin-RevId: 289581573
Diffstat (limited to 'googletest/src/gtest-internal-inl.h')
-rw-r--r-- | googletest/src/gtest-internal-inl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/googletest/src/gtest-internal-inl.h b/googletest/src/gtest-internal-inl.h index d0ebe0c..e42ff47 100644 --- a/googletest/src/gtest-internal-inl.h +++ b/googletest/src/gtest-internal-inl.h @@ -698,6 +698,10 @@ class GTEST_API_ UnitTestImpl { return parameterized_test_registry_; } + std::set<std::string>* ignored_parameterized_test_suites() { + return &ignored_parameterized_test_suites_; + } + // Returns TypeParameterizedTestSuiteRegistry object used to keep track of // type-parameterized tests and instantiations of them. internal::TypeParameterizedTestSuiteRegistry& @@ -884,6 +888,10 @@ class GTEST_API_ UnitTestImpl { internal::TypeParameterizedTestSuiteRegistry type_parameterized_test_registry_; + // The set holding the name of parameterized + // test suites that may go uninstantiated. + std::set<std::string> ignored_parameterized_test_suites_; + // Indicates whether RegisterParameterizedTests() has been called already. bool parameterized_tests_registered_; |