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

Method AutoReg

external/catch.hpp:14586–14595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14584 NameAndTags::NameAndTags( StringRef const& name_ , StringRef const& tags_ ) noexcept : name( name_ ), tags( tags_ ) {}
14585
14586 AutoReg::AutoReg( ITestInvoker* invoker, SourceLineInfo const& lineInfo, StringRef const& classOrMethod, NameAndTags const& nameAndTags ) noexcept {
14587 CATCH_TRY {
14588 getMutableRegistryHub()
14589 .registerTest(
14590 makeTestCase(
14591 invoker,
14592 extractClassName( classOrMethod ),
14593 nameAndTags,
14594 lineInfo));
14595 } CATCH_CATCH_ALL {
14596 // Do not throw when constructing global objects, instead register the exception to be processed later
14597 getMutableRegistryHub().registerStartupException();
14598 }

Callers

nothing calls this directly

Calls 3

makeTestCaseFunction · 0.85
extractClassNameFunction · 0.85
registerTestMethod · 0.45

Tested by

no test coverage detected