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

Function test_exists_directory

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

Source from the content-addressed store, hash-verified

107
108#[test]
109fn test_exists_directory() {
110 let (dir, fs) = temp_fs();
111 std::fs::create_dir(dir.path().join("subdir")).unwrap();
112
113 assert!(fs.exists("subdir"));
114}
115
116#[test]
117fn test_is_directory() {

Callers

nothing calls this directly

Calls 3

temp_fsFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected