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

Function test_is_directory

atomic-core/src/output/memory.rs:904–912  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

902
903 #[test]
904 fn test_is_directory() {
905 let wc = Memory::new();
906 wc.add_file("file.txt", b"");
907 wc.add_directory("dir");
908
909 assert!(!wc.is_directory("file.txt"));
910 assert!(wc.is_directory("dir"));
911 assert!(!wc.is_directory("nonexistent"));
912 }
913
914 // -------------------------------------------------------------------------
915 // WorkingCopy Write Tests

Callers

nothing calls this directly

Calls 2

add_fileMethod · 0.45
add_directoryMethod · 0.45

Tested by

no test coverage detected