diff --git a/libs/editor/editor_tests/feature_type_to_osm_test.cpp b/libs/editor/editor_tests/feature_type_to_osm_test.cpp index f0ab0fde5..979fe46d8 100644 --- a/libs/editor/editor_tests/feature_type_to_osm_test.cpp +++ b/libs/editor/editor_tests/feature_type_to_osm_test.cpp @@ -22,3 +22,9 @@ UNIT_TEST(testIfTestRuns) TEST_EQUAL(result.key, "amenity", ()); TEST_EQUAL(result.value, "restaurant", ()); } + +UNIT_TEST(loadConfigFile) +{ + FeatureTypeToOSM typeToOsm; + typeToOsm.loadConfigFile(); +} diff --git a/libs/editor/feature_type_to_osm.cpp b/libs/editor/feature_type_to_osm.cpp index 908203fa1..c1d8c2640 100644 --- a/libs/editor/feature_type_to_osm.cpp +++ b/libs/editor/feature_type_to_osm.cpp @@ -2,11 +2,18 @@ #include "base/logging.hpp" #include "indexer/classificator.hpp" +#include "platform/platform.hpp" namespace editor { void FeatureTypeToOSM::loadConfigFile() { LOG(LINFO, ("Hello from loadConfigFile")); + + Platform & p = GetPlatform(); + + std::unique_ptr reader = p.GetReader("mapcss-mapping.csv"); + + LOG(LINFO, ("File has size ", reader->Size())); } std::vector FeatureTypeToOSM::typeToOSM(uint32_t type)