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

Function manifest

atomic-repository/tests/native_span_record.rs:90–95  ·  view source on GitHub ↗
(image: &std::path::Path, digest: &str)

Source from the content-addressed store, hash-verified

88 panic!("{wanted} missing from OCI layer {digest}");
89 }
90 fn manifest(image: &std::path::Path, digest: &str) -> serde_json::Value {
91 let path = image
92 .join("blobs/sha256")
93 .join(digest.strip_prefix("sha256:").unwrap());
94 serde_json::from_slice(&std::fs::read(path).unwrap()).unwrap()
95 }
96
97 let dir = tempfile::tempdir().unwrap();
98 let root = dir.path().join("repo");

Calls 2

readFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected