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

Function file_iri

atomic-cli/tests/it/routing_parity_test.rs:53–58  ·  view source on GitHub ↗
(repo_dir: &Path, home_dir: &Path, path: &str)

Source from the content-addressed store, hash-verified

51}
52
53fn file_iri(repo_dir: &Path, home_dir: &Path, path: &str) -> String {
54 let identity = run(repo_dir, home_dir, &["repo", "identity", "show", "--json"]);
55 let identity: serde_json::Value = serde_json::from_str(&identity).unwrap();
56 let project = ProjectId::from_base32(identity["project"].as_str().unwrap()).unwrap();
57 iri::mint_file(&project, path)
58}
59
60fn ensure_default_identity(repo_dir: &Path, home_dir: &Path) {
61 run(

Calls 3

runFunction · 0.70
unwrapMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected