MCPcopy Create free account
hub / github.com/cpputest/cpputest / getCurrentRegistry

Method getCurrentRegistry

src/CppUTest/TestRegistry.cpp:138–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136TestRegistry* TestRegistry::currentRegistry_ = NULLPTR;
137
138TestRegistry* TestRegistry::getCurrentRegistry()
139{
140 static TestRegistry registry;
141 return (currentRegistry_ == NULLPTR) ? &registry : currentRegistry_;
142}
143
144void TestRegistry::setCurrentRegistry(TestRegistry* registry)
145{

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected