MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / AutoReg

Method AutoReg

tests/catch.hpp:11872–11881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11870 NameAndTags::NameAndTags( StringRef const& name_ , StringRef const& tags_ ) noexcept : name( name_ ), tags( tags_ ) {}
11871
11872 AutoReg::AutoReg( ITestInvoker* invoker, SourceLineInfo const& lineInfo, StringRef const& classOrMethod, NameAndTags const& nameAndTags ) noexcept {
11873 CATCH_TRY {
11874 getMutableRegistryHub()
11875 .registerTest(
11876 makeTestCase(
11877 invoker,
11878 extractClassName( classOrMethod ),
11879 nameAndTags,
11880 lineInfo));
11881 } CATCH_CATCH_ALL {
11882 // Do not throw when constructing global objects, instead register the exception to be processed later
11883 getMutableRegistryHub().registerStartupException();
11884 }

Callers

nothing calls this directly

Calls 3

makeTestCaseFunction · 0.85
extractClassNameFunction · 0.85
registerTestMethod · 0.45

Tested by

no test coverage detected