MCPcopy Create free account
hub / github.com/apache/trafficserver / registerTest

Method registerTest

lib/catch2/catch.hpp:14300–14308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14298 }
14299
14300 void TestRegistry::registerTest( TestCase const& testCase ) {
14301 std::string name = testCase.getTestCaseInfo().name;
14302 if( name.empty() ) {
14303 ReusableStringStream rss;
14304 rss << "Anonymous test case " << ++m_unnamedCount;
14305 return registerTest( testCase.withName( rss.str() ) );
14306 }
14307 m_functions.push_back( testCase );
14308 }
14309
14310 std::vector<TestCase> const& TestRegistry::getAllTests() const {
14311 return m_functions;

Callers 3

registerTestMethodsFunction · 0.45
registerTestMethod · 0.45
AutoRegMethod · 0.45

Calls 4

withNameMethod · 0.80
emptyMethod · 0.45
strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected