MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / SetUpTestCase

Method SetUpTestCase

test/tests/Pathfinding.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28{
29public:
30 static void SetUpTestCase()
31 {
32 gOpenRCT2Headless = true;
33 gOpenRCT2NoGraphics = true;
34 _context = CreateContext();
35 const bool initialised = _context->Initialise();
36 ASSERT_TRUE(initialised);
37
38 std::string parkPath = TestData::GetParkPath("pathfinding-tests.sv6");
39 GetContext()->LoadParkFromFile(parkPath);
40 GameLoadInit();
41 }
42
43 void SetUp() override
44 {

Callers

nothing calls this directly

Calls 6

CreateContextFunction · 0.85
GetParkPathFunction · 0.85
GetContextFunction · 0.85
GameLoadInitFunction · 0.85
InitialiseMethod · 0.45
LoadParkFromFileMethod · 0.45

Tested by

no test coverage detected