MCPcopy Create free account
hub / github.com/Profactor/cv-plot / registerTest

Method registerTest

CvPlot/ext/catch2/inc/catch.hpp:14008–14016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14006 }
14007
14008 void TestRegistry::registerTest( TestCase const& testCase ) {
14009 std::string name = testCase.getTestCaseInfo().name;
14010 if( name.empty() ) {
14011 ReusableStringStream rss;
14012 rss << "Anonymous test case " << ++m_unnamedCount;
14013 return registerTest( testCase.withName( rss.str() ) );
14014 }
14015 m_functions.push_back( testCase );
14016 }
14017
14018 std::vector<TestCase> const& TestRegistry::getAllTests() const {
14019 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