MCPcopy Create free account
hub / github.com/ddnet/ddnet / TEST

Function TEST

src/test/mapbugs_test.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17TEST(MapBugs, Contains)
18{
19 EXPECT_TRUE(GetMapBugsImpl("Binary", 2022597, BINARY_SHA256).Contains(BUG_GRENADE_DOUBLEEXPLOSION));
20 EXPECT_FALSE(GetMapBugsImpl("Binarx", 2022597, BINARY_SHA256).Contains(BUG_GRENADE_DOUBLEEXPLOSION));
21 EXPECT_FALSE(GetMapBugsImpl("Binary", 2022598, BINARY_SHA256).Contains(BUG_GRENADE_DOUBLEEXPLOSION));
22 EXPECT_FALSE(GetMapBugsImpl("dm1", 5805, DM1_SHA256).Contains(BUG_GRENADE_DOUBLEEXPLOSION));
23}
24
25TEST(MapBugs, Update)
26{

Callers

nothing calls this directly

Calls 4

GetMapBugsImplFunction · 0.85
ContainsMethod · 0.80
UpdateMethod · 0.45
DumpMethod · 0.45

Tested by

no test coverage detected