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

Function checkKnownTestDecl2Names

test/DeclManager.cpp:220–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220inline void checkKnownTestDecl2Names()
221{
222 auto foundNames = getAllDeclNames(decl::Type::TestDecl2);
223
224 // Assume testdecls are not listed
225 EXPECT_FALSE(foundNames.count("decl/exporttest/guisurf1") > 0);
226 EXPECT_FALSE(foundNames.count("decl/numbers/0") > 0);
227 EXPECT_FALSE(foundNames.count("decl/numbers/1") > 0);
228 EXPECT_FALSE(foundNames.count("decl/numbers/2") > 0);
229
230 // testdecl2 should be listed
231 EXPECT_TRUE(foundNames.count("decltable1") > 0);
232 EXPECT_TRUE(foundNames.count("decltable2") > 0);
233 EXPECT_TRUE(foundNames.count("decltable3") > 0);
234}
235
236TEST_F(DeclManagerTest, DeclFolderRegistration)
237{

Callers 1

TEST_FFunction · 0.85

Calls 2

getAllDeclNamesFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected