/
srv
/
osrm
/
osrm-backend
/
third_party
/
vtzero
/
test
/
/srv/osrm/osrm-backend/third_party/vtzero/test
mkdir
upload
Name
Size
Mode
Actions
catch/
-
0755
rm
data/
-
0755
rm
include/
-
0755
rm
t/
-
0755
rm
CMakeLists.txt
2798
0644
edit
dl
rm
fixture_tests.cpp
32595
0644
edit
dl
rm
test_main.cpp
617
0644
edit
dl
rm
Edit:
/srv/osrm/osrm-backend/third_party/vtzero/test/test_main.cpp
(617B)
#define CATCH_CONFIG_MAIN #include "catch.hpp" #include <test.hpp> #include <fstream> #include <stdexcept> #include <string> bool got_an_assert = false; std::string load_test_tile() { std::string path{"data/mapbox-streets-v6-14-8714-8017.mvt"}; std::ifstream stream{path, std::ios_base::in|std::ios_base::binary}; if (!stream.is_open()) { throw std::runtime_error{"could not open: '" + path + "'"}; } const std::string message{std::istreambuf_iterator<char>(stream.rdbuf()), std::istreambuf_iterator<char>()}; stream.close(); return message; }
Save
cmd:
run