1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Shared test harness helpers for integration tests.
use HashSet;
use PathBuf;
/// Locate the `fake-editor` helper binary built by Cargo with the
/// `dev-helpers` feature. `CARGO_BIN_EXE_<name>` is set by Cargo at test
/// build time per https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates.
/// Allocate a fresh tempdir scoped to the test.
/// Snapshot the names of every entry currently in `dir`. Used by FR-032
/// before/after assertions to confirm no `.rusty-vipe-*` or `tmp-*` tempfile
/// survived a given run.
/// Assert that no `.rusty-vipe-*` artifact remains in the diff between two
/// snapshots taken before and after a vipe run.