This commit is contained in:
Minecon724 2025-10-27 16:28:05 +01:00
commit 5a3e48d070
Signed by untrusted user who does not match committer: m
GPG key ID: A02E6E67AB961189

View file

@ -79,4 +79,18 @@ class PgpSignatureVerificationTest {
checker.verify("simple message", invalidFingerprint, detachedSignature)
}
}
@Test
fun `verify should fail for empty input data`() {
shouldThrow<Exception> {
checker.verify("simple message", invalidFingerprint, "")
}
}
@Test
fun `verify should fail for empty fingerprint data`() {
shouldThrow<Exception> {
checker.verify("simple message", "", detachedSignature)
}
}
}