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

Method OnTestFinish

tests/test_unit_command.cc:319–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317 }
318
319 void OnTestFinish() override {
320 VerifyUnitExistsAndComplete(UNIT_TYPEID::PROTOSS_GATEWAY);
321 VerifyUnitIdleAfterOrder(test_unit_type_);
322 VerifyUnitIdleAfterOrder(UNIT_TYPEID::PROTOSS_GATEWAY);
323 const ObservationInterface* obs = agent_->Observation();
324 if (obs->GetWarpGateCount() != 0) {
325 ReportError("Gateway is being incorrectly identified as a Warp Gate.");
326 }
327 KillAllUnits();
328 }
329 };
330
331

Callers

nothing calls this directly

Calls 2

ObservationMethod · 0.80
GetWarpGateCountMethod · 0.80

Tested by

no test coverage detected