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

Function temp_fs

atomic-core/src/output/filesystem/tests.rs:17–21  ·  view source on GitHub ↗

Create a FileSystem rooted at a temporary directory.

()

Source from the content-addressed store, hash-verified

15
16/// Create a FileSystem rooted at a temporary directory.
17fn temp_fs() -> (TempDir, FileSystem) {
18 let dir = temp_dir();
19 let fs = FileSystem::from_root(dir.path());
20 (dir, fs)
21}
22
23// ------------------------------------------------------------------------
24// Construction and Basic Properties

Callers 15

test_resolve_path_simpleFunction · 0.85
test_resolve_path_nestedFunction · 0.85
test_exists_fileFunction · 0.85
test_exists_directoryFunction · 0.85
test_is_directoryFunction · 0.85
test_is_atomic_pathFunction · 0.85
test_read_file_simpleFunction · 0.85
test_read_file_binaryFunction · 0.85

Calls 2

temp_dirFunction · 0.85
pathMethod · 0.45

Tested by

no test coverage detected