()
| 509 | |
| 510 | #[test] |
| 511 | fn commit_files_noop_when_clean() { |
| 512 | let d = tempdir().unwrap(); |
| 513 | init(d.path()).unwrap(); |
| 514 | write(&d.path().join("a.txt"), b"hi"); |
| 515 | commit_files(d.path(), "first", &["a.txt"]).unwrap(); |
| 516 | let sha1 = head_sha(d.path()).unwrap(); |
| 517 | commit_files(d.path(), "second", &["a.txt"]).unwrap(); |
| 518 | let sha2 = head_sha(d.path()).unwrap(); |
| 519 | assert_eq!(sha1, sha2, "no-op commit should not advance HEAD"); |
| 520 | } |
| 521 | |
| 522 | #[test] |
| 523 | fn show_at_returns_historical_bytes() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…