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

Method OnTestFinish

tests/test_unit_command.cc:348–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346 }
347
348 void OnTestFinish() override {
349 VerifyUnitExistsAndComplete(UNIT_TYPEID::PROTOSS_PYLON);
350 VerifyUnitIdleAfterOrder(test_unit_type_);
351 const ObservationInterface* obs = agent_->Observation();
352 if (obs->GetPowerSources().size() != 1) {
353 ReportError("Pylon is not being counted as a power source.");
354 }
355 KillAllUnits();
356 }
357 };
358
359

Callers

nothing calls this directly

Calls 1

ObservationMethod · 0.80

Tested by

no test coverage detected