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

Function test_take_snapshot_empty_dir

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

Source from the content-addressed store, hash-verified

279
280 #[test]
281 fn test_take_snapshot_empty_dir() {
282 let dir = TempDir::new().unwrap();
283 let snapshot = take_snapshot(dir.path(), &[".atomic".to_string()]).unwrap();
284 assert!(snapshot.is_empty());
285 }
286
287 #[test]
288 fn test_take_snapshot_with_files() {

Callers

nothing calls this directly

Calls 3

take_snapshotFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected