MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / registerTest

Method registerTest

tests/catch.hpp:11577–11585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11575 }
11576
11577 void TestRegistry::registerTest( TestCase const& testCase ) {
11578 std::string name = testCase.getTestCaseInfo().name;
11579 if( name.empty() ) {
11580 ReusableStringStream rss;
11581 rss << "Anonymous test case " << ++m_unnamedCount;
11582 return registerTest( testCase.withName( rss.str() ) );
11583 }
11584 m_functions.push_back( testCase );
11585 }
11586
11587 std::vector<TestCase> const& TestRegistry::getAllTests() const {
11588 return m_functions;

Callers 3

registerTestMethodsFunction · 0.45
registerTestMethod · 0.45
AutoRegMethod · 0.45

Calls 3

withNameMethod · 0.80
strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected