diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-15 18:51:47 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-20 15:23:02 +0200 |
commit | 855affd9b681d98f248009ddb2c1abe987029f72 (patch) | |
tree | 6d4dbfc2c99020772313f381d2f793950d2b03f4 /test/buildtool/crypto/hash_function.test.cpp | |
parent | 391d982f2fbd98a2973f14e0b5969f66c2abd756 (diff) | |
download | justbuild-855affd9b681d98f248009ddb2c1abe987029f72.tar.gz |
Crypto: Refactor hash computation
... by renaming HashGenerator to (incremental) Hasher and
dropping support for Git/MD5 hashes. The Hasher does not
expose the actual hash implementation.
Diffstat (limited to 'test/buildtool/crypto/hash_function.test.cpp')
-rw-r--r-- | test/buildtool/crypto/hash_function.test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/buildtool/crypto/hash_function.test.cpp b/test/buildtool/crypto/hash_function.test.cpp index b56c82a6..2655d7a4 100644 --- a/test/buildtool/crypto/hash_function.test.cpp +++ b/test/buildtool/crypto/hash_function.test.cpp @@ -19,7 +19,7 @@ TEST_CASE("Hash Function", "[crypto]") { auto hasher = HashFunction::Hasher(); hasher.Update(bytes); - CHECK(std::move(hasher).Finalize()->HexString() == // NOLINT + CHECK(std::move(hasher).Finalize().HexString() == // NOLINT "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3"); } @@ -40,7 +40,7 @@ TEST_CASE("Hash Function", "[crypto]") { auto hasher = HashFunction::Hasher(); hasher.Update(bytes); CHECK( - std::move(hasher).Finalize()->HexString() == // NOLINT + std::move(hasher).Finalize().HexString() == // NOLINT "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"); } } |