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

Function test_is_writable_file

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

Source from the content-addressed store, hash-verified

581
582#[test]
583fn test_is_writable_file() {
584 let (dir, fs) = temp_fs();
585 std::fs::write(dir.path().join("file.txt"), "content").unwrap();
586
587 assert!(fs.is_writable("file.txt").unwrap());
588}
589
590#[test]
591fn test_is_writable_nonexistent() {

Callers

nothing calls this directly

Calls 4

temp_fsFunction · 0.85
writeFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected