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

Method AutoReg

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

Source from the content-addressed store, hash-verified

10282}
10283
10284AutoReg::AutoReg(ITestInvoker *invoker, SourceLineInfo const &lineInfo, StringRef const &classOrMethod,
10285 NameAndTags const &nameAndTags) noexcept {
10286 try {
10287 getMutableRegistryHub().registerTest(makeTestCase(invoker, extractClassName(classOrMethod), nameAndTags, lineInfo));
10288 } catch (...) {
10289 // Do not throw when constructing global objects, instead register the exception to be processed later
10290 getMutableRegistryHub().registerStartupException();
10291 }
10292}
10293
10294AutoReg::~AutoReg() = default;
10295} // namespace Catch

Callers

nothing calls this directly

Calls 4

makeTestCaseFunction · 0.85
extractClassNameFunction · 0.85
registerTestMethod · 0.45

Tested by

no test coverage detected