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

Function checkKnownTestDeclNames

test/DeclManager.cpp:204–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204inline void checkKnownTestDeclNames()
205{
206 auto foundNames = getAllDeclNames(decl::Type::TestDecl);
207
208 // Check a few known ones
209 EXPECT_TRUE(foundNames.count("decl/exporttest/guisurf1") > 0);
210 EXPECT_TRUE(foundNames.count("decl/numbers/0") > 0);
211 EXPECT_TRUE(foundNames.count("decl/numbers/1") > 0);
212 EXPECT_TRUE(foundNames.count("decl/numbers/2") > 0);
213
214 // decltables should not be listed
215 EXPECT_FALSE(foundNames.count("decltable1") > 0);
216 EXPECT_FALSE(foundNames.count("decltable2") > 0);
217 EXPECT_FALSE(foundNames.count("decltable3") > 0);
218}
219
220inline void checkKnownTestDecl2Names()
221{

Callers 1

TEST_FFunction · 0.85

Calls 2

getAllDeclNamesFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected