| 10282 | } |
| 10283 | |
| 10284 | AutoReg::AutoReg(ITestInvoker *invoker, SourceLineInfo const &lineInfo, StringRef const &classOrMethod, |
| 10285 | NameAndTags const &nameAndTags) noexcept { |
| 10286 | try { |
| 10287 | getMutableRegistryHub().registerTest(makeTestCase(invoker, extractClassName(classOrMethod), nameAndTags, lineInfo)); |
| 10288 | } catch (...) { |
| 10289 | // Do not throw when constructing global objects, instead register the exception to be processed later |
| 10290 | getMutableRegistryHub().registerStartupException(); |
| 10291 | } |
| 10292 | } |
| 10293 | |
| 10294 | AutoReg::~AutoReg() = default; |
| 10295 | } // namespace Catch |
nothing calls this directly
no test coverage detected