[generator:tests] Add ScapedDir usage for code coverage increase

This commit is contained in:
Anatoly Serdtcev 2019-11-01 17:26:13 +03:00 committed by Sergey Yershov
parent 68b5276514
commit 221e880b0b

View file

@ -122,7 +122,9 @@ void TestFindReverse(std::vector<OsmElementData> const & osmElements,
)
{
classificator::Load();
ScopedFile const geoObjectsFeatures{"geo_objects_features.mwm", ScopedFile::Mode::DoNotCreate};
ScopedDir const dataTmpDir{"tmp"};
ScopedFile const geoObjectsFeatures{"tmp/geo_objects_features.mwm",
ScopedFile::Mode::DoNotCreate};
ScopedFile const idsWithoutAddresses{"ids_without_addresses.txt", ScopedFile::Mode::DoNotCreate};
ScopedFile const geoObjectsKeyValue{"geo_objects.jsonl", ScopedFile::Mode::DoNotCreate};
@ -227,7 +229,9 @@ UNIT_TEST(GenerateGeoObjects_AddNullBuildingPointToPoint)
void TestPoiHasAddress(std::vector<OsmElementData> const & osmElements)
{
classificator::Load();
ScopedFile const geoObjectsFeatures{"geo_objects_features.mwm", ScopedFile::Mode::DoNotCreate};
ScopedDir const dataTmpDir{"tmp"};
ScopedFile const geoObjectsFeatures{"tmp/geo_objects_features.mwm",
ScopedFile::Mode::DoNotCreate};
ScopedFile const idsWithoutAddresses{"ids_without_addresses.txt", ScopedFile::Mode::DoNotCreate};
ScopedFile const geoObjectsKeyValue{"geo_objects.jsonl", ScopedFile::Mode::DoNotCreate};