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

Function write

atomic-repository/tests/it/remote_cache_parity_test.rs:17–21  ·  view source on GitHub ↗
(root: &Path, rel: &str, content: &str)

Source from the content-addressed store, hash-verified

15use tempfile::TempDir;
16
17fn write(root: &Path, rel: &str, content: &str) {
18 let path = root.join(rel);
19 fs::create_dir_all(path.parent().unwrap()).unwrap();
20 fs::write(path, content).unwrap();
21}
22
23fn header(message: &str) -> ChangeHeader {
24 ChangeHeader::builder()

Calls 2

parentMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected