matrix-org / vodozemac

An implementation of Olm and Megolm in pure Rust.
Apache License 2.0
175 stars 30 forks source link

test(cipher): Add mutation tests #143

Closed Johennes closed 6 months ago

Johennes commented 7 months ago

This fixes the following:

MISSED   src/cipher/mod.rs:146:29: replace < with == in Cipher::decrypt_pickle in 0.9s build + 3.1s test
MISSED   src/cipher/mod.rs:146:50: replace + with * in Cipher::decrypt_pickle in 0.9s build + 3.1s test
MISSED   src/cipher/mod.rs:146:50: replace + with - in Cipher::decrypt_pickle in 0.9s build + 3.1s test
MISSED   src/cipher/mod.rs:175:9: replace Cipher::verify_truncated_mac -> Result<(), MacError> with Ok(()) in 0.9s build + 3.5s test

Relates to: #78

Johennes commented 7 months ago

Attempt to fix the unrelated clippy warnings: https://github.com/matrix-org/vodozemac/pull/145