| 10961 | } |
| 10962 | |
| 10963 | Option<std::size_t> list( std::shared_ptr<Config> const& config ) { |
| 10964 | Option<std::size_t> listedCount; |
| 10965 | getCurrentMutableContext().setConfig( config ); |
| 10966 | if( config->listTests() ) |
| 10967 | listedCount = listedCount.valueOr(0) + listTests( *config ); |
| 10968 | if( config->listTestNamesOnly() ) |
| 10969 | listedCount = listedCount.valueOr(0) + listTestsNamesOnly( *config ); |
| 10970 | if( config->listTags() ) |
| 10971 | listedCount = listedCount.valueOr(0) + listTags( *config ); |
| 10972 | if( config->listReporters() ) |
| 10973 | listedCount = listedCount.valueOr(0) + listReporters(); |
| 10974 | return listedCount; |
| 10975 | } |
| 10976 | |
| 10977 | } // end namespace Catch |
| 10978 | // end catch_list.cpp |
no test coverage detected