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

Method ValidateIntegrity

libs/platform/local_country_file.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107bool LocalCountryFile::ValidateIntegrity() const
108{
109 auto calculatedSha1 = coding::SHA1::CalculateBase64(GetPath(MapFileType::Map));
110 ASSERT_EQUAL(calculatedSha1, m_countryFile.GetSha1(), ("Integrity failure"));
111 return calculatedSha1 == m_countryFile.GetSha1();
112}
113
114// static
115LocalCountryFile LocalCountryFile::MakeForTesting(std::string countryFileName, int64_t version)

Callers 1

ApplyDiffMethod · 0.80

Calls 1

GetPathFunction · 0.85

Tested by

no test coverage detected