| 9246 | } |
| 9247 | |
| 9248 | Option<std::size_t> list( std::shared_ptr<Config> const& config ) { |
| 9249 | Option<std::size_t> listedCount; |
| 9250 | getCurrentMutableContext().setConfig( config ); |
| 9251 | if( config->listTests() ) |
| 9252 | listedCount = listedCount.valueOr(0) + listTests( *config ); |
| 9253 | if( config->listTestNamesOnly() ) |
| 9254 | listedCount = listedCount.valueOr(0) + listTestsNamesOnly( *config ); |
| 9255 | if( config->listTags() ) |
| 9256 | listedCount = listedCount.valueOr(0) + listTags( *config ); |
| 9257 | if( config->listReporters() ) |
| 9258 | listedCount = listedCount.valueOr(0) + listReporters(); |
| 9259 | return listedCount; |
| 9260 | } |
| 9261 | |
| 9262 | } // end namespace Catch |
| 9263 | // end catch_list.cpp |
no test coverage detected