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

Function testInvalidCmd

tests/move_route.cpp:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166static void testInvalidCmd(bool repeat, bool skip) {
167 auto ch = MoveRouteVehicle();
168 auto mr = MakeRoute(-1, repeat, skip);
169
170 ch.ForceMoveRoute(mr, 3);
171 testMoveRoute(ch, false, 3, 0xFFFF, 64, 0, true, false, mr);
172
173 ForceUpdate(ch);
174 if (repeat) {
175 testMoveRoute(ch, false, 3, 0xFFFF + 1, 64, 0, true, true, mr);
176 } else {
177 testMoveRoute(ch, false, 2, 0xFFFF + 1, 128, 1, false, false, mr);
178 }
179}
180
181TEST_CASE("TestMoveRouteInvalidCmd") {
182 const MapGuard mg;

Callers 1

move_route.cppFile · 0.85

Calls 5

MoveRouteVehicleClass · 0.85
MakeRouteFunction · 0.85
testMoveRouteFunction · 0.85
ForceMoveRouteMethod · 0.80
ForceUpdateFunction · 0.70

Tested by

no test coverage detected