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

Method GetTestUnit

tests/test_unit_command_common.cc:198–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197
198 bool TestUnitCommand::GetTestUnit(Unit& test_unit) {
199 const ObservationInterface* obs = agent_->Observation();
200 if (!obs) {
201 return false;
202 }
203 const Unit* unit = obs->GetUnit(test_unit_);
204 if (!unit) {
205 return false;
206 }
207
208 test_unit = *unit;
209 return true;
210 }
211
212
213 //

Callers

nothing calls this directly

Calls 2

ObservationMethod · 0.80
GetUnitMethod · 0.80

Tested by

no test coverage detected