Skip to content

Commit 68604d2

Browse files
committed
tests: fold more small tests into main.rs
Put the insta testdata expected value inline in the file, so that it's not accidentally deleted when Insta is asked to delete unreferenced snapshots in the main tree.
1 parent 3d3bc82 commit 68604d2

File tree

34 files changed

+11691
-809
lines changed

34 files changed

+11691
-809
lines changed

testdata/insta/tests/insta.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ use cargo_mutants_testdata_insta::say_hello;
33
#[test]
44
fn say_hello_vs_insta_snapshot() {
55
let name = "Robin";
6-
insta::assert_snapshot!(say_hello(name));
6+
insta::assert_snapshot!(say_hello(name), @r###"Hello, Robin!"###);
77
}

testdata/insta/tests/snapshots/insta__say_hello_vs_insta_snapshot.snap

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/list.rs

Lines changed: 0 additions & 308 deletions
This file was deleted.

0 commit comments

Comments
 (0)