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

Method SetUpTestCase

test/tests/TileElementsView.cpp:35–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33{
34protected:
35 static void SetUpTestCase()
36 {
37 std::string parkPath = TestData::GetParkPath("bpb.sv6");
38 gOpenRCT2Headless = true;
39 gOpenRCT2NoGraphics = true;
40 _context = CreateContext();
41 bool initialised = _context->Initialise();
42 ASSERT_TRUE(initialised);
43
44 GetContext()->LoadParkFromFile(parkPath);
45 GameLoadInit();
46
47 // Changed in some tests. Store to restore its value
48 _gLegacyScene = gLegacyScene;
49 SUCCEED();
50 }
51
52 static void TearDownTestCase()
53 {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected