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

Function TEST_F

test/tests/TileElements.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59LegacyScene TileElementWantsFootpathConnection::_gLegacyScene;
60
61TEST_F(TileElementWantsFootpathConnection, FlatPath)
62{
63 // Flat paths want to connect to other paths in any direction
64 const auto* pathElement = MapGetFootpathElement(TileCoordsXYZ{ 19, 18, 14 }.ToCoordsXYZ());
65 ASSERT_NE(pathElement, nullptr);
66 EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 18, 14, 0 }, nullptr));
67 EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 18, 14, 1 }, nullptr));
68 EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 18, 14, 2 }, nullptr));
69 EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 18, 14, 3 }, nullptr));
70 SUCCEED();
71}
72
73TEST_F(TileElementWantsFootpathConnection, SlopedPath)
74{

Callers

nothing calls this directly

Calls 10

MapGetFootpathElementFunction · 0.85
MapGetTrackElementAtFunction · 0.85
MapGetRideExitElementAtFunction · 0.85
FootpathConnectEdgesFunction · 0.85
ToCoordsXYZMethod · 0.80
IsSlopedMethod · 0.45
asPathMethod · 0.45
GetEdgesMethod · 0.45

Tested by

no test coverage detected