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

Function expectDeclContains

test/DeclManager.cpp:478–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478inline void expectDeclContains(decl::Type type, const std::string& declName, const std::string& expectedContents)
479{
480 auto decl = GlobalDeclarationManager().findDeclaration(type, declName);
481 EXPECT_TRUE(decl) << declName << " should be present";
482 EXPECT_NE(decl->getBlockSyntax().contents.find(expectedContents), std::string::npos)
483 << declName << " should contain the expected contents " << expectedContents;
484}
485
486// Decl must still be present, but not contain the given string
487inline void expectDeclDoesNotContain(decl::Type type, const std::string& declName, const std::string& contents)

Callers 1

TEST_FFunction · 0.85

Calls 2

findDeclarationMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected