diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-08 15:56:38 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:01:13 +0200 |
commit | 57388e7624c71762e6aac30f16809c467f96ca58 (patch) | |
tree | 9a865c096ee11e450939404cfa53cb70098910b1 /test/buildtool/build_engine | |
parent | f58946aeabb30363f41e3eb189f6bbfcea4009dd (diff) | |
download | justbuild-57388e7624c71762e6aac30f16809c467f96ca58.tar.gz |
Store HashFunction in StorageConfig
Diffstat (limited to 'test/buildtool/build_engine')
-rw-r--r-- | test/buildtool/build_engine/target_map/target_map.test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/buildtool/build_engine/target_map/target_map.test.cpp b/test/buildtool/build_engine/target_map/target_map.test.cpp index 0880422f..c64bb306 100644 --- a/test/buildtool/build_engine/target_map/target_map.test.cpp +++ b/test/buildtool/build_engine/target_map/target_map.test.cpp @@ -961,10 +961,14 @@ TEST_CASE("built-in rules", "[target_map]") { CHECK(error_msg == "NONE"); CHECK(bar_result->Artifacts()->ToJson()["foo.txt."]["type"] == "KNOWN"); CHECK(bar_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] == - HashFunction::Instance().ComputeBlobHash("bar").HexString()); + storage_config.Get() + .hash_function.ComputeBlobHash("bar") + .HexString()); CHECK(baz_result->Artifacts()->ToJson()["foo.txt."]["type"] == "KNOWN"); CHECK(baz_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] == - HashFunction::Instance().ComputeBlobHash("baz").HexString()); + storage_config.Get() + .hash_function.ComputeBlobHash("baz") + .HexString()); } } |