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

Function write

libatomic/tests/triage_service_test.rs:29–33  ·  view source on GitHub ↗
(root: &std::path::Path, rel: &str, content: &str)

Source from the content-addressed store, hash-verified

27use libatomic::atomic::{GenerateTriageReviewRequest, RepositoryRef};
28
29fn write(root: &std::path::Path, rel: &str, content: &str) {
30 let path = root.join(rel);
31 std::fs::create_dir_all(path.parent().unwrap()).unwrap();
32 std::fs::write(path, content).unwrap();
33}
34
35/// A repository with one change on `dev` and one on a draft `feat`.
36fn host() -> (TempDir, std::path::PathBuf, Arc<DaemonState>, RepositoryRef) {

Callers 1

hostFunction · 0.70

Calls 2

parentMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected