| 6287 | struct OnUnusedOptions { enum DoWhat { Ignore, Fail }; }; |
| 6288 | |
| 6289 | Session() |
| 6290 | : m_cli( makeCommandLineParser() ) { |
| 6291 | if( alreadyInstantiated ) { |
| 6292 | std::string msg = "Only one instance of Catch::Session can ever be used"; |
| 6293 | Catch::cerr() << msg << std::endl; |
| 6294 | throw std::logic_error( msg ); |
| 6295 | } |
| 6296 | alreadyInstantiated = true; |
| 6297 | } |
| 6298 | ~Session() { |
| 6299 | Catch::cleanUp(); |
| 6300 | } |
nothing calls this directly
no test coverage detected