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

Function testBaseLimits

tests/game_actor.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static void testBaseLimits(Game_Actor& actor, int hp, int sp, int base) {
88 REQUIRE_EQ(actor.GetBaseMaxHp(), hp);
89 REQUIRE_EQ(actor.GetMaxHp(), hp);
90 REQUIRE_EQ(actor.GetBaseMaxSp(), sp);
91 REQUIRE_EQ(actor.GetMaxSp(), sp);
92 REQUIRE_EQ(actor.GetBaseAtk(), base);
93 REQUIRE_EQ(actor.GetAtk(), base);
94 REQUIRE_EQ(actor.GetBaseDef(), base);
95 REQUIRE_EQ(actor.GetDef(), base);
96 REQUIRE_EQ(actor.GetBaseSpi(), base);
97 REQUIRE_EQ(actor.GetSpi(), base);
98 REQUIRE_EQ(actor.GetBaseAgi(), base);
99 REQUIRE_EQ(actor.GetAgi(), base);
100}
101
102static void testModBaseLimits(Game_Actor& actor, int hp, int base) {
103 REQUIRE_EQ(actor.GetMaxHpMod(), hp);

Callers 1

testLimitsFunction · 0.85

Calls 12

GetMaxHpMethod · 0.80
GetMaxSpMethod · 0.80
GetAtkMethod · 0.80
GetDefMethod · 0.80
GetSpiMethod · 0.80
GetAgiMethod · 0.80
GetBaseMaxHpMethod · 0.45
GetBaseMaxSpMethod · 0.45
GetBaseAtkMethod · 0.45
GetBaseDefMethod · 0.45
GetBaseSpiMethod · 0.45
GetBaseAgiMethod · 0.45

Tested by

no test coverage detected