mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Remove hashingWithUnknownAlgoExits
A valid hash type must be provided now. The hash itself can still be invalid, but that doesn't cause an `abort()`.
This commit is contained in:
parent
64cffb804a
commit
d73dbc8e4c
1 changed files with 0 additions and 5 deletions
|
@ -72,9 +72,4 @@ namespace nix {
|
||||||
"7299aeadb6889018501d289e4900f7e4331b99dec4b5433a"
|
"7299aeadb6889018501d289e4900f7e4331b99dec4b5433a"
|
||||||
"c7d329eeb6dd26545e96e55b874be909");
|
"c7d329eeb6dd26545e96e55b874be909");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(hashString, hashingWithUnknownAlgoExits) {
|
|
||||||
auto s = "unknown";
|
|
||||||
ASSERT_DEATH(hashString(HashType::SHA512, s), "");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue