From 855affd9b681d98f248009ddb2c1abe987029f72 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 15 Jun 2022 18:51:47 +0200 Subject: 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. --- test/buildtool/crypto/hash_function.test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/buildtool/crypto/hash_function.test.cpp') 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"); } } -- cgit v1.2.3