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

Function write

atomic-repository/tests/it/revise_content_regression.rs:23–27  ·  view source on GitHub ↗
(repo: &Repository, path: &str, content: &str)

Source from the content-addressed store, hash-verified

21}
22
23fn write(repo: &Repository, path: &str, content: &str) {
24 let file = repo.root().join(path);
25 fs::create_dir_all(file.parent().unwrap()).unwrap();
26 fs::write(file, content).unwrap();
27}
28
29fn recorded(repo: &Repository) -> BTreeMap<String, Vec<u8>> {
30 let mut files = BTreeMap::new();

Calls 3

parentMethod · 0.80
rootMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected