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

Function test_diff_no_changes

atomic-agent/src/watcher/fallback.rs:364–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362
363 #[test]
364 fn test_diff_no_changes() {
365 let mut snapshot = HashMap::new();
366 snapshot.insert(
367 PathBuf::from("a.rs"),
368 FileEntry {
369 mtime: SystemTime::UNIX_EPOCH,
370 size: 100,
371 },
372 );
373
374 let changes = diff_snapshots(&snapshot, &snapshot);
375 assert!(changes.is_empty());
376 }
377
378 #[test]
379 fn test_diff_added_file() {

Callers

nothing calls this directly

Calls 2

diff_snapshotsFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected