| 9020 | } |
| 9021 | |
| 9022 | Option<std::size_t> list( std::shared_ptr<Config> const& config ) { |
| 9023 | Option<std::size_t> listedCount; |
| 9024 | getCurrentMutableContext().setConfig( config ); |
| 9025 | if( config->listTests() ) |
| 9026 | listedCount = listedCount.valueOr(0) + listTests( *config ); |
| 9027 | if( config->listTestNamesOnly() ) |
| 9028 | listedCount = listedCount.valueOr(0) + listTestsNamesOnly( *config ); |
| 9029 | if( config->listTags() ) |
| 9030 | listedCount = listedCount.valueOr(0) + listTags( *config ); |
| 9031 | if( config->listReporters() ) |
| 9032 | listedCount = listedCount.valueOr(0) + listReporters(); |
| 9033 | return listedCount; |
| 9034 | } |
| 9035 | |
| 9036 | } // end namespace Catch |
| 9037 | // end catch_list.cpp |
no test coverage detected