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

Class SimplePathfindingScenario

test/tests/Pathfinding.cpp:168–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166std::shared_ptr<IContext> PathfindingTestBase::_context;
167
168struct SimplePathfindingScenario
169{
170 const char* name;
171 TileCoordsXYZ start;
172 uint32_t steps;
173
174 SimplePathfindingScenario(const char* _name, const TileCoordsXYZ& _start, int _steps)
175 : name(_name)
176 , start(_start)
177 , steps(_steps)
178 {
179 }
180
181 static std::string ToName(const testing::TestParamInfo<SimplePathfindingScenario>& param_info)
182 {
183 return param_info.param.name;
184 }
185};
186
187class SimplePathfindingTest : public PathfindingTestBase, public testing::WithParamInterface<SimplePathfindingScenario>
188{

Callers 1

Pathfinding.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected