MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / AutoReg

Method AutoReg

extlibs/catch/include/catch/catch.hpp:13960–13969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13958 NameAndTags::NameAndTags( StringRef const& name_ , StringRef const& tags_ ) noexcept : name( name_ ), tags( tags_ ) {}
13959
13960 AutoReg::AutoReg( ITestInvoker* invoker, SourceLineInfo const& lineInfo, StringRef const& classOrMethod, NameAndTags const& nameAndTags ) noexcept {
13961 CATCH_TRY {
13962 getMutableRegistryHub()
13963 .registerTest(
13964 makeTestCase(
13965 invoker,
13966 extractClassName( classOrMethod ),
13967 nameAndTags,
13968 lineInfo));
13969 } CATCH_CATCH_ALL {
13970 // Do not throw when constructing global objects, instead register the exception to be processed later
13971 getMutableRegistryHub().registerStartupException();
13972 }

Callers

nothing calls this directly

Calls 3

makeTestCaseFunction · 0.85
extractClassNameFunction · 0.85
registerTestMethod · 0.45

Tested by

no test coverage detected