MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / expectDefinitionContains

Function expectDefinitionContains

test/MaterialExport.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using MaterialExportTest_TdmMissionSetup = TdmMissionSetup;
17
18inline void expectDefinitionContains(const MaterialPtr& material, const std::string& expectedContainedString)
19{
20 EXPECT_NE(material->getDefinition().find(expectedContainedString), std::string::npos)
21 << "Material definition doesn't contain " << expectedContainedString << " as expected.\n"
22 << "Definition was: \n" << material->getDefinition();
23}
24
25inline void expectDefinitionDoesNotContain(const MaterialPtr& material, const std::string& unexpectedString)
26{

Callers 1

TEST_FFunction · 0.85

Calls 2

findMethod · 0.45
getDefinitionMethod · 0.45

Tested by

no test coverage detected