Skip to content

Commit c5a8add

Browse files
authored
Merge pull request #489 from Yubico/match-exhaust
Fix match inexhaustiveness warnings
2 parents deb34b7 + 6324662 commit c5a8add

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

webauthn-server-core/src/test/scala/com/yubico/webauthn/TestAuthenticator.scala

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,9 @@ object TestAuthenticator {
923923
(TpmAlgHash.SHA512, TpmAlgAsym.RSA)
924924
case COSEAlgorithmIdentifier.RS1 => (TpmAlgHash.SHA1, TpmAlgAsym.RSA)
925925
case COSEAlgorithmIdentifier.EdDSA | COSEAlgorithmIdentifier.Ed25519 |
926-
COSEAlgorithmIdentifier.Ed448 =>
926+
COSEAlgorithmIdentifier.Ed448 | COSEAlgorithmIdentifier.ML_DSA_44 |
927+
COSEAlgorithmIdentifier.ML_DSA_65 |
928+
COSEAlgorithmIdentifier.ML_DSA_87 =>
927929
???
928930
}
929931
val hashFunc = hashId match {
@@ -974,7 +976,10 @@ object TestAuthenticator {
974976
COSEAlgorithmIdentifier.RS512 |
975977
COSEAlgorithmIdentifier.EdDSA |
976978
COSEAlgorithmIdentifier.Ed25519 |
977-
COSEAlgorithmIdentifier.Ed448 =>
979+
COSEAlgorithmIdentifier.Ed448 |
980+
COSEAlgorithmIdentifier.ML_DSA_44 |
981+
COSEAlgorithmIdentifier.ML_DSA_65 |
982+
COSEAlgorithmIdentifier.ML_DSA_87 =>
978983
???
979984
}),
980985
// kdf_scheme: ??? (unused?)

webauthn-server-core/src/test/scala/com/yubico/webauthn/data/Generators.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ object Generators {
10381038
evalByCredential.asJava,
10391039
eval,
10401040
)
1041+
case (None, None) => ??? // Impossible given Gen.oneOf above
10411042
}
10421043
implicit val arbitraryPrfAuthenticationInput
10431044
: Arbitrary[PrfAuthenticationInput] = Arbitrary(authenticationInput)

0 commit comments

Comments
 (0)