MCPcopy Create free account
hub / github.com/apache/qpid-proton / runInternal

Method runInternal

tests/include/catch.hpp:13543–13573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13541 }
13542
13543 int Session::runInternal() {
13544 if( m_startupExceptions )
13545 return 1;
13546
13547 if (m_configData.showHelp || m_configData.libIdentify) {
13548 return 0;
13549 }
13550
13551 CATCH_TRY {
13552 config(); // Force config to be constructed
13553
13554 seedRng( *m_config );
13555
13556 if( m_configData.filenamesAsTags )
13557 applyFilenamesAsTags( *m_config );
13558
13559 // Handle list request
13560 if( Option<std::size_t> listed = list( m_config ) )
13561 return static_cast<int>( *listed );
13562
13563 TestGroup tests { m_config };
13564 auto const totals = tests.execute();
13565
13566 if( m_config->warnAboutNoTests() && totals.error == -1 )
13567 return 2;
13568
13569 // Note that on unices only the lower 8 bits are usually used, clamping
13570 // the return value to 255 prevents false negative when some multiple
13571 // of 256 tests has failed
13572 return (std::min) (MaxExitCode, (std::max) (totals.error, static_cast<int>(totals.assertions.failed)));
13573 }
13574#if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
13575 catch( std::exception& ex ) {
13576 Catch::cerr() << ex.what() << std::endl;

Callers

nothing calls this directly

Calls 5

seedRngFunction · 0.85
applyFilenamesAsTagsFunction · 0.85
listFunction · 0.85
executeMethod · 0.80
warnAboutNoTestsMethod · 0.80

Tested by

no test coverage detected