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