| 66 | } |
| 67 | |
| 68 | void 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 | |
| 83 | openlr::Path MakePath(FeatureType const & road, bool const forward) |
| 84 | { |
no test coverage detected