MCPcopy Create free account
hub / github.com/apache/singa / AddTestPattern

Method AddTestPattern

test/gtest/gtest.h:10465–10471  ·  view source on GitHub ↗

TEST_P macro uses AddTestPattern() to record information about a single test in a LocalTestInfo structure. test_case_name is the base name of the test case (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 case base name and DoBar is test base name.

Source from the content-addressed store, hash-verified

10463 // parameter index. For the test SequenceA/FooTest.DoBar/1 FooTest is
10464 // test case base name and DoBar is test base name.
10465 void AddTestPattern(const char* test_case_name,
10466 const char* test_base_name,
10467 TestMetaFactoryBase<ParamType>* meta_factory) {
10468 tests_.push_back(linked_ptr<TestInfo>(new TestInfo(test_case_name,
10469 test_base_name,
10470 meta_factory)));
10471 }
10472 // INSTANTIATE_TEST_CASE_P macro uses AddGenerator() to record information
10473 // about a generator.
10474 int AddTestCaseInstantiation(const string& instantiation_name,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected