| 11164 | getSingletons()->push_back( singleton ); |
| 11165 | } |
| 11166 | void cleanupSingletons() { |
| 11167 | auto& singletons = getSingletons(); |
| 11168 | for( auto singleton : *singletons ) |
| 11169 | delete singleton; |
| 11170 | delete singletons; |
| 11171 | singletons = nullptr; |
| 11172 | } |
| 11173 | |
| 11174 | } // namespace Catch |
| 11175 | // end catch_singletons.cpp |
no test coverage detected