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

Function test_is_atomic_path

atomic-core/src/output/filesystem/tests.rs:128–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126
127#[test]
128fn test_is_atomic_path() {
129 let (_dir, fs) = temp_fs();
130
131 assert!(fs.is_atomic_path(".atomic"));
132 assert!(fs.is_atomic_path(".atomic/pristine"));
133 assert!(fs.is_atomic_path(".atomic/changes/AB/CD"));
134 assert!(!fs.is_atomic_path("src/main.rs"));
135 assert!(!fs.is_atomic_path(".atomicfoo")); // Not a prefix match
136}
137
138// ------------------------------------------------------------------------
139// Reading Files

Callers

nothing calls this directly

Calls 1

temp_fsFunction · 0.85

Tested by

no test coverage detected