matrix-org / vodozemac

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

test(types): Add mutation tests #144

Closed Johennes closed 6 months ago

Johennes commented 7 months ago

This fixes the following:

MISSED   src/types/mod.rs:33:9: replace <impl From for String>::from -> String with "xyzzy".into() in 0.7s build + 3.0s test
MISSED   src/types/mod.rs:33:9: replace <impl From for String>::from -> String with String::new() in 0.8s build + 3.2s test
MISSED   src/types/mod.rs:39:9: replace KeyId::to_base64 -> String with "xyzzy".into() in 1.0s build + 3.2s test
MISSED   src/types/mod.rs:39:9: replace KeyId::to_base64 -> String with String::new() in 0.8s build + 3.2s test

Relates to: #78

Johennes commented 7 months ago

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