MCPcopy Create free account
hub / github.com/comaps/comaps / InitStorage

Function InitStorage

libs/storage/storage_tests/storage_tests.cpp:461–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void InitStorage(Storage & storage, TaskRunner & runner, Storage::UpdateCallback const & update = &OnCountryDownloaded)
462{
463 storage.Clear();
464 storage.Init(update, [](CountryId const &, LocalFilePtr const) { return false; });
465 storage.RegisterAllLocalMaps();
466 storage.SetDownloaderForTesting(make_unique<FakeMapFilesDownloader>(runner));
467 // Disable because of FakeMapFilesDownloader.
468 storage.SetEnabledIntegrityValidationForTesting(false);
469}
470
471class StorageTest
472{

Callers 2

StorageTestMethod · 0.70
UNIT_TESTFunction · 0.70

Calls 5

RegisterAllLocalMapsMethod · 0.80
ClearMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected