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

Method registerTest

unittests/catch.hpp:10039–10047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10037 }
10038
10039 void TestRegistry::registerTest( TestCase const& testCase ) {
10040 std::string name = testCase.getTestCaseInfo().name;
10041 if( name.empty() ) {
10042 ReusableStringStream rss;
10043 rss << "Anonymous test case " << ++m_unnamedCount;
10044 return registerTest( testCase.withName( rss.str() ) );
10045 }
10046 m_functions.push_back( testCase );
10047 }
10048
10049 std::vector<TestCase> const& TestRegistry::getAllTests() const {
10050 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