MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / getCurrentTestName

Method getCurrentTestName

Source/UnitTesting.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45std::string cUnitTesting::getCurrentTestName() {
46 std::string MissionTitle = "Mission " + std::to_string(g_Fodder->mGame_Data.mMission_Number);
47 MissionTitle += " Phase " + std::to_string(g_Fodder->mGame_Data.mMission_Phase);
48 MissionTitle += ": " + g_Fodder->mGame_Data.mMission_Current->mName;
49 if(g_Fodder->mGame_Data.mPhase_Current->mName != g_Fodder->mGame_Data.mMission_Current->mName)
50 MissionTitle += " (" + g_Fodder->mGame_Data.mPhase_Current->mName + ")";
51 return MissionTitle;
52
53}
54void cUnitTesting::EngineSetup() {
55 g_Fodder->mIntroDone = false;
56

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected