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

Function write

atomic-repository/tests/it/materialize_view_entries_test.rs:13–17  ·  view source on GitHub ↗
(repo_path: &Path, name: &str, content: &str)

Source from the content-addressed store, hash-verified

11use tempfile::TempDir;
12
13fn write(repo_path: &Path, name: &str, content: &str) {
14 let path = repo_path.join(name);
15 fs::create_dir_all(path.parent().unwrap()).unwrap();
16 fs::write(path, content).unwrap();
17}
18
19fn record(repo: &Repository, message: &str) -> Hash {
20 let header = ChangeHeader::builder()

Calls 2

parentMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected