MCPcopy Create free account
hub / github.com/Blizzard/s2client-api / VerifyUnitIdleAfterOrder

Method VerifyUnitIdleAfterOrder

tests/test_unit_command_common.cc:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 void TestUnitCommand::VerifyUnitIdleAfterOrder(UNIT_TYPEID unit_type) {
143 bool unit_idled = false;
144 for (const Unit& unit : idled_units_) {
145 if (unit.unit_type == unit_type) {
146 unit_idled = true;
147 }
148 }
149
150 if (!unit_idled) {
151 ReportError("Unit did not trigger OnUnitIdle as expected.");
152 }
153 }
154
155 void TestUnitCommand::VerifyOwnerOfUnits(Units units, int expected_owner) {
156 for (Unit unit : units) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected