| 23 | using namespace std; |
| 24 | using namespace BWAPI; |
| 25 | void TerranTest::onStart() |
| 26 | { |
| 27 | BWAssert(Broodwar->isReplay()==false); |
| 28 | Broodwar->enableFlag(Flag::CompleteMapInformation); |
| 29 | |
| 30 | Broodwar->setLocalSpeed(0); |
| 31 | Broodwar->setFrameSkip(512); |
| 32 | this->addTestCase(new LiftTest(UnitTypes::Terran_Command_Center)); |
| 33 | this->addTestCase(new TrainTest(UnitTypes::Terran_SCV)); |
| 34 | this->addTestCase(new RightClickTest(UnitTypes::Terran_SCV,UnitTypes::Terran_Command_Center,UnitTypes::Terran_Command_Center)); |
| 35 | this->addTestCase(new MPHSTest(UnitTypes::Terran_SCV)); |
| 36 | this->addTestCase(new AttackMoveTest(UnitTypes::Terran_SCV)); |
| 37 | this->addTestCase(new AttackUnitTest(UnitTypes::Terran_SCV,UnitTypes::Terran_Command_Center)); |
| 38 | this->addTestCase(new RepairTest(UnitTypes::Terran_SCV,UnitTypes::Terran_Command_Center)); |
| 39 | this->addTestCase(new FollowTest(UnitTypes::Terran_SCV,UnitTypes::Terran_Command_Center)); |
| 40 | this->addTestCase(new RallyTest(UnitTypes::Terran_Command_Center)); |
| 41 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Command_Center,true)); |
| 42 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Command_Center)); |
| 43 | this->addTestCase(new BuildTest(UnitTypes::Terran_Command_Center)); |
| 44 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Supply_Depot)); |
| 45 | this->addTestCase(new BuildTest(UnitTypes::Terran_Supply_Depot)); |
| 46 | this->addTestCase(new BuildTest(UnitTypes::Terran_Supply_Depot)); |
| 47 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Refinery,true)); |
| 48 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Refinery)); |
| 49 | this->addTestCase(new BuildTest(UnitTypes::Terran_Refinery)); |
| 50 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Barracks)); |
| 51 | this->addTestCase(new BuildTest(UnitTypes::Terran_Barracks)); |
| 52 | this->addTestCase(new RallyTest(UnitTypes::Terran_Barracks)); |
| 53 | this->addTestCase(new GatherTest()); |
| 54 | this->addTestCase(new BuildTest(UnitTypes::Terran_Engineering_Bay)); |
| 55 | this->addTestCase(new BuildTest(UnitTypes::Terran_Missile_Turret)); |
| 56 | this->addTestCase(new BuildTest(UnitTypes::Terran_Academy)); |
| 57 | // Lan-low latency makes it to here without error |
| 58 | this->addTestCase(new CancelTrainTest(UnitTypes::Terran_Marine,UnitTypes::Terran_Medic,UnitTypes::Terran_Firebat)); |
| 59 | this->addTestCase(new BuildTest(UnitTypes::Terran_Bunker)); |
| 60 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Factory,true)); |
| 61 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Factory)); |
| 62 | this->addTestCase(new BuildTest(UnitTypes::Terran_Factory)); |
| 63 | this->addTestCase(new RallyTest(UnitTypes::Terran_Factory)); |
| 64 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Machine_Shop)); |
| 65 | this->addTestCase(new BuildTest(UnitTypes::Terran_Machine_Shop)); |
| 66 | this->addTestCase(new BuildTest(UnitTypes::Terran_Starport)); |
| 67 | this->addTestCase(new RallyTest(UnitTypes::Terran_Starport)); |
| 68 | this->addTestCase(new BuildTest(UnitTypes::Terran_Science_Facility)); |
| 69 | this->addTestCase(new BuildTest(UnitTypes::Terran_Science_Facility)); |
| 70 | this->addTestCase(new BuildTest(UnitTypes::Terran_Armory)); |
| 71 | this->addTestCase(new CancelTrainTest(UnitTypes::Terran_Vulture,UnitTypes::Terran_Siege_Tank_Tank_Mode,UnitTypes::Terran_Goliath)); |
| 72 | this->addTestCase(new CancelTrainTest(UnitTypes::Terran_Siege_Tank_Tank_Mode,UnitTypes::Terran_Goliath,UnitTypes::Terran_Vulture)); |
| 73 | this->addTestCase(new CancelTrainTest(UnitTypes::Terran_Goliath,UnitTypes::Terran_Vulture,UnitTypes::Terran_Siege_Tank_Tank_Mode)); |
| 74 | |
| 75 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Comsat_Station)); |
| 76 | this->addTestCase(new BuildTest(UnitTypes::Terran_Comsat_Station)); |
| 77 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Control_Tower)); |
| 78 | this->addTestCase(new BuildTest(UnitTypes::Terran_Control_Tower)); |
| 79 | this->addTestCase(new CancelConstructionTest(UnitTypes::Terran_Physics_Lab)); |
| 80 | this->addTestCase(new BuildTest(UnitTypes::Terran_Physics_Lab)); |
| 81 | this->addTestCase(new BuildTest(UnitTypes::Terran_Covert_Ops)); |
| 82 | this->addTestCase(new BuildTest(UnitTypes::Terran_Nuclear_Silo)); |
nothing calls this directly
no test coverage detected