MCPcopy Create free account
hub / github.com/apache/trafficserver / AutoReg

Method AutoReg

lib/catch2/catch.hpp:14597–14606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14595 NameAndTags::NameAndTags( StringRef const& name_ , StringRef const& tags_ ) noexcept : name( name_ ), tags( tags_ ) {}
14596
14597 AutoReg::AutoReg( ITestInvoker* invoker, SourceLineInfo const& lineInfo, StringRef const& classOrMethod, NameAndTags const& nameAndTags ) noexcept {
14598 CATCH_TRY {
14599 getMutableRegistryHub()
14600 .registerTest(
14601 makeTestCase(
14602 invoker,
14603 extractClassName( classOrMethod ),
14604 nameAndTags,
14605 lineInfo));
14606 } CATCH_CATCH_ALL {
14607 // Do not throw when constructing global objects, instead register the exception to be processed later
14608 getMutableRegistryHub().registerStartupException();
14609 }

Callers

nothing calls this directly

Calls 3

extractClassNameFunction · 0.85
makeTestCaseFunction · 0.70
registerTestMethod · 0.45

Tested by

no test coverage detected