MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / registerTest

Method registerTest

extlibs/catch/include/catch/catch.hpp:13670–13678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13668 }
13669
13670 void TestRegistry::registerTest( TestCase const& testCase ) {
13671 std::string name = testCase.getTestCaseInfo().name;
13672 if( name.empty() ) {
13673 ReusableStringStream rss;
13674 rss << "Anonymous test case " << ++m_unnamedCount;
13675 return registerTest( testCase.withName( rss.str() ) );
13676 }
13677 m_functions.push_back( testCase );
13678 }
13679
13680 std::vector<TestCase> const& TestRegistry::getAllTests() const {
13681 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