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

Method runInternal

tests/catch.hpp:10842–10867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10840 }
10841
10842 int Session::runInternal() {
10843 if( m_startupExceptions )
10844 return 1;
10845
10846 if (m_configData.showHelp || m_configData.libIdentify) {
10847 return 0;
10848 }
10849
10850 CATCH_TRY {
10851 config(); // Force config to be constructed
10852
10853 seedRng( *m_config );
10854
10855 if( m_configData.filenamesAsTags )
10856 applyFilenamesAsTags( *m_config );
10857
10858 // Handle list request
10859 if( Option<std::size_t> listed = list( m_config ) )
10860 return static_cast<int>( *listed );
10861
10862 auto totals = runTests( m_config );
10863 // Note that on unices only the lower 8 bits are usually used, clamping
10864 // the return value to 255 prevents false negative when some multiple
10865 // of 256 tests has failed
10866 return (std::min) (MaxExitCode, (std::max) (totals.error, static_cast<int>(totals.assertions.failed)));
10867 }
10868#if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
10869 catch( std::exception& ex ) {
10870 Catch::cerr() << ex.what() << std::endl;

Callers

nothing calls this directly

Calls 4

seedRngFunction · 0.85
applyFilenamesAsTagsFunction · 0.85
listFunction · 0.85
runTestsFunction · 0.85

Tested by

no test coverage detected