cargo-mutants 27.0.0

Inject bugs and see if your tests catch them
1
2
3
4
5
6
7
8
9
10
use std::sync::Arc;

fn return_arc() -> Arc<String> {
    Arc::new(String::from("hello!"))
}

#[test]
fn returns_hello() {
    assert_eq!(return_arc().as_ref(), "hello!");
}