MCPcopy Create free account
hub / github.com/BVLC/caffe / AddTestPattern

Method AddTestPattern

src/gtest/gtest.h:10400–10406  ·  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

10398 // parameter index. For the test SequenceA/FooTest.DoBar/1 FooTest is
10399 // test case base name and DoBar is test base name.
10400 void AddTestPattern(const char* test_case_name,
10401 const char* test_base_name,
10402 TestMetaFactoryBase<ParamType>* meta_factory) {
10403 tests_.push_back(linked_ptr<TestInfo>(new TestInfo(test_case_name,
10404 test_base_name,
10405 meta_factory)));
10406 }
10407 // INSTANTIATE_TEST_CASE_P macro uses AddGenerator() to record information
10408 // about a generator.
10409 int AddTestCaseInstantiation(const string& instantiation_name,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected