MCPcopy Create free account
hub / github.com/FlightGear/flightgear / getRegistry

Function getRegistry

3rdparty/cppunit/src/cppunit/TestFactoryRegistry.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 6

loadMethod · 0.85
unloadMethod · 0.85
addRegistryMethod · 0.85
AutoRegisterRegistryMethod · 0.85
testRunnerFunction · 0.85

Calls 2

isValidFunction · 0.85
getInstanceFunction · 0.85

Tested by

no test coverage detected