diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 16:41:52 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:02:34 +0200 |
commit | 21014f3be3e4f8ebf34243f4f10841f0fb0b3843 (patch) | |
tree | 1208031cead9f9ca78d0f13a273f8242c045f3fc /test/buildtool/build_engine | |
parent | b2f51059cc034f03c70df28a5597a591ed3e5c5d (diff) | |
download | justbuild-21014f3be3e4f8ebf34243f4f10841f0fb0b3843.tar.gz |
Rename HashFunction methods and enums
Diffstat (limited to 'test/buildtool/build_engine')
-rw-r--r-- | test/buildtool/build_engine/target_map/target_map.test.cpp | 14 |
1 files changed, 6 insertions, 8 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 c64bb306..18927cf4 100644 --- a/test/buildtool/build_engine/target_map/target_map.test.cpp +++ b/test/buildtool/build_engine/target_map/target_map.test.cpp @@ -960,15 +960,13 @@ TEST_CASE("built-in rules", "[target_map]") { CHECK(!error); CHECK(error_msg == "NONE"); CHECK(bar_result->Artifacts()->ToJson()["foo.txt."]["type"] == "KNOWN"); - CHECK(bar_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] == - storage_config.Get() - .hash_function.ComputeBlobHash("bar") - .HexString()); + CHECK( + bar_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] == + storage_config.Get().hash_function.HashBlobData("bar").HexString()); CHECK(baz_result->Artifacts()->ToJson()["foo.txt."]["type"] == "KNOWN"); - CHECK(baz_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] == - storage_config.Get() - .hash_function.ComputeBlobHash("baz") - .HexString()); + CHECK( + baz_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] == + storage_config.Get().hash_function.HashBlobData("baz").HexString()); } } |