#pragma once #include "metadata.hpp" #include #include #include #include #include class Manifest; using ErrorMessage = std::string; using JSONReply = mbgl::variant; JSONReply readJson(const mbgl::filesystem::path&); std::string serializeJsonValue(const mbgl::JSValue&); std::string serializeMetrics(const TestMetrics&); std::vector readExpectedImageEntries(const mbgl::filesystem::path& base); std::vector readExpectedJSONEntries(const mbgl::filesystem::path& base); TestMetrics readExpectedMetrics(const mbgl::filesystem::path& path); TestMetadata parseTestMetadata(const TestPaths& paths, const Manifest& manifest); std::string createResultPage(const TestStatistics&, const std::vector&, bool shuffle, uint32_t seed); std::string toJSON(const mbgl::Value& value, unsigned indent, bool singleLine); std::string toJSON(const std::vector& features, unsigned indent, bool singleLine);