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

Function expectDeclDoesNotContain

test/DeclManager.cpp:487–493  ·  view source on GitHub ↗

Decl must still be present, but not contain the given string

Source from the content-addressed store, hash-verified

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)
488{
489 auto decl = GlobalDeclarationManager().findDeclaration(type, declName);
490 EXPECT_TRUE(decl) << declName << " should be present";
491 EXPECT_EQ(decl->getBlockSyntax().contents.find(contents), std::string::npos)
492 << declName << " should NOT contain " << contents;
493}
494
495// EntityDef is treated the same as EnTiTyDeF and entitydef
496TEST_F(DeclManagerTest, DeclTypenamesAreCaseInsensitive)

Callers 1

TEST_FFunction · 0.85

Calls 2

findDeclarationMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected