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

Function testMenu

tests/game_player_input.cpp:161–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static void testMenu(bool success) {
162 auto& ch = *Main_Data::game_player;
163 ch.SetX(8);
164 ch.SetY(8);
165
166 Input::ResetKeys();
167
168 Input::triggered[Input::CANCEL] = true;
169
170 ForceUpdate(ch);
171 testPos(ch, 8, 8, Down, Down, 0, false, 1, 0, 0, false, success, 0, false, false);
172
173 // FIXME: Test conditions which disable menu calling
174}
175
176TEST_CASE("CallMenu") {
177 const MockGame mg(map_id);

Callers 1

Calls 4

testPosFunction · 0.85
ForceUpdateFunction · 0.70
SetXMethod · 0.45
SetYMethod · 0.45

Tested by

no test coverage detected