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

Method AutoReg

tutorials/external/catch.hpp:12144–12153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12142 NameAndTags::NameAndTags( StringRef const& name_ , StringRef const& tags_ ) noexcept : name( name_ ), tags( tags_ ) {}
12143
12144 AutoReg::AutoReg( ITestInvoker* invoker, SourceLineInfo const& lineInfo, StringRef const& classOrMethod, NameAndTags const& nameAndTags ) noexcept {
12145 CATCH_TRY {
12146 getMutableRegistryHub()
12147 .registerTest(
12148 makeTestCase(
12149 invoker,
12150 extractClassName( classOrMethod ),
12151 nameAndTags,
12152 lineInfo));
12153 } CATCH_CATCH_ALL {
12154 // Do not throw when constructing global objects, instead register the exception to be processed later
12155 getMutableRegistryHub().registerStartupException();
12156 }

Callers

nothing calls this directly

Calls 3

makeTestCaseFunction · 0.85
extractClassNameFunction · 0.85
registerTestMethod · 0.45

Tested by

no test coverage detected