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

Function TestSerializeDeserialize

tools/openlr/openlr_tests/decoded_path_test.cpp:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void TestSerializeDeserialize(openlr::Path const & path, DataSource const & dataSource)
69{
70 pugi::xml_document doc;
71 openlr::PathToXML(path, doc);
72
73 openlr::Path restoredPath;
74 openlr::PathFromXML(doc, dataSource, restoredPath);
75
76 // Fix mercator::From/ToLatLon floating point error
77 // for we could use TEST_EQUAL on result.
78 RoughJunctionsInPath(restoredPath);
79
80 TEST_EQUAL(path, restoredPath, ());
81}
82
83openlr::Path MakePath(FeatureType const & road, bool const forward)
84{

Callers 1

UNIT_TESTFunction · 0.85

Calls 3

PathToXMLFunction · 0.85
PathFromXMLFunction · 0.85
RoughJunctionsInPathFunction · 0.85

Tested by

no test coverage detected