MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / registerTest

Method registerTest

Bcore/src/main/cpp/Dobby/tests/catch.hpp:9951–9959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9949}
9950
9951void TestRegistry::registerTest(TestCase const &testCase) {
9952 std::string name = testCase.getTestCaseInfo().name;
9953 if (name.empty()) {
9954 ReusableStringStream rss;
9955 rss << "Anonymous test case " << ++m_unnamedCount;
9956 return registerTest(testCase.withName(rss.str()));
9957 }
9958 m_functions.push_back(testCase);
9959}
9960
9961std::vector<TestCase> const &TestRegistry::getAllTests() const {
9962 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