MCPcopy Create free account
hub / github.com/apache/qpid-proton / registerTest

Method registerTest

tests/include/catch.hpp:14304–14312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

registerTestMethodsFunction · 0.45
registerTestMethod · 0.45
AutoRegMethod · 0.45

Calls 3

withNameMethod · 0.80
emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected