MCPcopy Create free account
hub / github.com/RenderKit/embree / registerTest

Method registerTest

tutorials/external/catch.hpp:11854–11862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11852 }
11853
11854 void TestRegistry::registerTest( TestCase const& testCase ) {
11855 std::string name = testCase.getTestCaseInfo().name;
11856 if( name.empty() ) {
11857 ReusableStringStream rss;
11858 rss << "Anonymous test case " << ++m_unnamedCount;
11859 return registerTest( testCase.withName( rss.str() ) );
11860 }
11861 m_functions.push_back( testCase );
11862 }
11863
11864 std::vector<TestCase> const& TestRegistry::getAllTests() const {
11865 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