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

Function BOOST_AUTO_TEST_CASE

unit_tests/util/static_graph.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99BOOST_AUTO_TEST_CASE(target_test)
100{
101 std::vector<TestInputEdge> input_edges = {TestInputEdge{0, 1, EdgeID{1}},
102 TestInputEdge{3, 0, EdgeID{2}}};
103 TestStaticGraph simple_graph = TestStaticGraph(4, input_edges);
104
105 auto target = simple_graph.GetTarget(simple_graph.FindEdge(3, 0));
106 BOOST_CHECK_EQUAL(target, 0);
107}
108
109BOOST_AUTO_TEST_CASE(find_test)
110{

Callers

nothing calls this directly

Calls 5

GetTargetMethod · 0.45
FindEdgeMethod · 0.45
RenumberMethod · 0.45

Tested by

no test coverage detected