(image: &std::path::Path, digest: &str)
| 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"); |
no test coverage detected