| 15 | { |
| 16 | |
| 17 | inline void assertStringIsMapxFile(const std::string& content) |
| 18 | { |
| 19 | const auto tagContents = string::splitToVec(content, "<>"); |
| 20 | ASSERT_GE(tagContents.size(), 1); |
| 21 | ASSERT_EQ(tagContents[0], "?xml version=\"1.0\" encoding=\"utf-8\"?"); |
| 22 | |
| 23 | ASSERT_TRUE(content.find("<map") != std::string::npos); |
| 24 | } |
| 25 | |
| 26 | // Very rough check to see if path points to a file that looks like an XML document |
| 27 | inline void assertFileIsMapxFile(const std::string& path) |
no test coverage detected