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

Function write

libatomic/tests/status_service_test.rs:16–20  ·  view source on GitHub ↗
(root: &Path, path: &str, content: &str)

Source from the content-addressed store, hash-verified

14use tonic::Request;
15
16fn write(root: &Path, path: &str, content: &str) {
17 let path = root.join(path);
18 std::fs::create_dir_all(path.parent().unwrap()).unwrap();
19 std::fs::write(path, content).unwrap();
20}
21
22#[tokio::test]
23async fn caller_options_survive_the_working_copy_status_adapter() {

Calls 2

parentMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected