MCPcopy Create free account
hub / github.com/bwapi/bwapi / verifyTrainingQueue

Method verifyTrainingQueue

bwapi/TestAIModule/Source/CancelTrainTest.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 BWAssertF(producerType!=UnitTypes::Unknown,{fail=true;return;});
30}
31bool CancelTrainTest::verifyTrainingQueue()
32{
33 BWAssertF(producer!=NULL,{fail=true;return false;});
34 UnitType::list actualList = producer->getTrainingQueue();
35 BWAssertF(correctTrainingQueue.size() == actualList.size(),{log("Error training queue size %d != %d",correctTrainingQueue.size(),actualList.size());fail=true;return false;});
36 BWAssertF(correctTrainingQueue == actualList,{fail=true;return false;});
37 return true;
38}
39void CancelTrainTest::start()
40{
41 if (fail) return;

Callers

nothing calls this directly

Calls 3

logFunction · 0.85
getTrainingQueueMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected