MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / validate_tile

Function validate_tile

unit_tests/library/tile.cpp:172–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void validate_tile(const osrm::OSRM &osrm, bool use_string_only_api)
173{
174 using namespace osrm;
175
176 // This tile should contain most of monaco
177 TileParameters params{17059, 11948, 15};
178
179 std::string str_result;
180 const auto rc = run_tile(osrm, params, str_result, use_string_only_api);
181 BOOST_CHECK(rc == Status::Ok);
182
183 BOOST_CHECK(str_result.size() > 114000);
184
185 vtzero::vector_tile tile{str_result};
186
187 validate_feature_layer(tile.next_layer());
188 validate_turn_layer(tile.next_layer());
189 validate_node_layer(tile.next_layer());
190 validate_internal_nodes_layer(tile.next_layer());
191}
192
193void test_tile_ch(bool use_string_only_api)
194{

Callers 2

test_tile_chFunction · 0.85
test_tile_mldFunction · 0.85

Calls 6

run_tileFunction · 0.85
validate_feature_layerFunction · 0.85
validate_turn_layerFunction · 0.85
validate_node_layerFunction · 0.85
sizeMethod · 0.45

Tested by 2

test_tile_chFunction · 0.68
test_tile_mldFunction · 0.68