MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / AddTestPattern

Method AddTestPattern

tests/gtest/gtest.h:10903–10907  ·  view source on GitHub ↗

TEST_P macro uses AddTestPattern() to record information about a single test in a LocalTestInfo structure. test_suite_name is the base name of the test suite (without invocation prefix). test_base_name is the name of an individual test without parameter index. For the test SequenceA/FooTest.DoBar/1 FooTest is test suite base name and DoBar is test base name.

Source from the content-addressed store, hash-verified

10901 // parameter index. For the test SequenceA/FooTest.DoBar/1 FooTest is
10902 // test suite base name and DoBar is test base name.
10903 void AddTestPattern(const char* test_suite_name, const char* test_base_name,
10904 TestMetaFactoryBase<ParamType>* meta_factory) {
10905 tests_.push_back(std::shared_ptr<TestInfo>(
10906 new TestInfo(test_suite_name, test_base_name, meta_factory)));
10907 }
10908 // INSTANTIATE_TEST_SUITE_P macro uses AddGenerator() to record information
10909 // about a generator.
10910 int AddTestSuiteInstantiation(const std::string& instantiation_name,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected