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

Function checkNode

unit_tests/extractor/restriction_graph.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97std::map<NodeID, size_t> checkNode(const RestrictionGraph &graph,
98 const RestrictionID node_id,
99 std::vector<instruction> expected_instructions,
100 std::vector<NodeID> expected_edges)
101{
102 checkInstructions(graph.GetRestrictions(node_id), std::move(expected_instructions));
103 checkEdges(graph.GetEdges(node_id), std::move(expected_edges));
104 return nextEdges(graph.GetEdges(node_id));
105}
106
107std::map<NodeID, size_t>
108validateStartRestrictionNode(RestrictionGraph &graph,

Callers 2

Calls 5

checkInstructionsFunction · 0.85
checkEdgesFunction · 0.85
nextEdgesFunction · 0.85
GetEdgesMethod · 0.80
GetRestrictionsMethod · 0.45

Tested by

no test coverage detected