MCPcopy Create free account
hub / github.com/comaps/comaps / TestGraph

Function TestGraph

libs/transit/transit_tests/transit_graph_test.cpp:676–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676void TestGraph(GraphData const & actualGraph, Graph const & expectedGraph)
677{
678 TestForEquivalence(actualGraph.GetStops(), expectedGraph.m_stops);
679 TestForEquivalence(actualGraph.GetGates(), expectedGraph.m_gates);
680 TestForEquivalence(actualGraph.GetEdges(), expectedGraph.m_edges);
681 TestForEquivalence(actualGraph.GetTransfers(), expectedGraph.m_transfers);
682 TestForEquivalence(actualGraph.GetLines(), expectedGraph.m_lines);
683 TestForEquivalence(actualGraph.GetShapes(), expectedGraph.m_shapes);
684 TestForEquivalence(actualGraph.GetNetworks(), expectedGraph.m_networks);
685}
686
687void SerializeAndDeserializeGraph(GraphData & src, GraphData & dst)
688{

Callers 1

UNIT_TESTFunction · 0.85

Calls 2

TestForEquivalenceFunction · 0.85
GetEdgesMethod · 0.45

Tested by

no test coverage detected