| 11384 | } |
| 11385 | |
| 11386 | Option<std::size_t> list( std::shared_ptr<Config> const& config ) { |
| 11387 | Option<std::size_t> listedCount; |
| 11388 | getCurrentMutableContext().setConfig( config ); |
| 11389 | if( config->listTests() ) |
| 11390 | listedCount = listedCount.valueOr(0) + listTests( *config ); |
| 11391 | if( config->listTestNamesOnly() ) |
| 11392 | listedCount = listedCount.valueOr(0) + listTestsNamesOnly( *config ); |
| 11393 | if( config->listTags() ) |
| 11394 | listedCount = listedCount.valueOr(0) + listTags( *config ); |
| 11395 | if( config->listReporters() ) |
| 11396 | listedCount = listedCount.valueOr(0) + listReporters(); |
| 11397 | return listedCount; |
| 11398 | } |
| 11399 | |
| 11400 | } // end namespace Catch |
| 11401 | // end catch_list.cpp |