()
| 45 | } |
| 46 | |
| 47 | fn 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] |
| 57 | fn switch_with_stash_clears_added_files_and_pop_restores_their_bytes() { |
no test coverage detected