| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected