MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / checkAndMuteWarning

Function checkAndMuteWarning

tests/cpu/UnitTestLogUtils.cpp:162–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162bool checkAndMuteWarning(LogGuard & logGuard, const std::string str)
163{
164 const std::string pattern = R"(\[OpenColorIO Warning\]: )" + str + R"([\.\r\n]+)";
165 return logGuard.findAllAndRemove(pattern);
166}
167
168bool checkAndMuteError(LogGuard & logGuard, const std::string str)
169{

Callers 1

checkForLogOrExceptionFunction · 0.85

Calls 1

findAllAndRemoveMethod · 0.80

Tested by

no test coverage detected