MCPcopy Create free account
hub / github.com/EasyRPG/Player / testChar

Function testChar

tests/game_character_flash.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12TEST_SUITE_BEGIN("Game_Character_Flash");
13
14static void testChar(const Game_Character& ch, Color color, double power, int time_left) {
15 CAPTURE(color);
16 CAPTURE(power);
17 CAPTURE(time_left);
18
19 REQUIRE_EQ(ch.GetFlashColor(), color);
20 REQUIRE_EQ(ch.GetFlashLevel(), power);
21 REQUIRE_EQ(ch.GetFlashTimeLeft(), time_left);
22}
23
24static void testFlash(int r, int g, int b, double power, int frames) {
25 const MockGame mg(MockMap::ePassBlock20x15);

Callers 1

testFlashFunction · 0.70

Calls 3

GetFlashLevelMethod · 0.80
GetFlashTimeLeftMethod · 0.80
GetFlashColorMethod · 0.45

Tested by

no test coverage detected