MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fixture

Function fixture

atomic-cli/tests/it/working_copy_preservation_test.rs:47–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47fn fixture() -> TempDir {
48 let dir = TempDir::new().unwrap();
49 drop(Repository::init(dir.path()).unwrap());
50 std::fs::write(dir.path().join("local.txt"), "recorded\n").unwrap();
51 std::fs::write(dir.path().join("obsolete.txt"), "old content\n").unwrap();
52 record(dir.path(), "base");
53 dir
54}
55
56#[test]
57fn switch_with_stash_clears_added_files_and_pop_restores_their_bytes() {

Calls 5

initFunction · 0.70
writeFunction · 0.70
recordFunction · 0.70
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected