| 64 | } |
| 65 | |
| 66 | static TestFactoryRegistry *getRegistry( const std::string &name ) |
| 67 | { |
| 68 | // If the following assertion failed, then TestFactoryRegistry::getRegistry() |
| 69 | // was called during static variable destruction without checking the registry |
| 70 | // validity beforehand using TestFactoryRegistry::isValid() beforehand. |
| 71 | assert( isValid() ); |
| 72 | if ( !isValid() ) // release mode |
| 73 | return NULL; // => force CRASH |
| 74 | |
| 75 | return getInstance()->getInternalRegistry( name ); |
| 76 | } |
| 77 | |
| 78 | static bool isValid() |
| 79 | { |
no test coverage detected