MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / verify_file_sha256

Function verify_file_sha256

xtask/src/main.rs:5750–5754  ·  view source on GitHub ↗
(path: &Path, expected: &str, field: &str)

Source from the content-addressed store, hash-verified

5748}
5749
5750fn verify_file_sha256(path: &Path, expected: &str, field: &str) -> Result<()> {
5751 ensure_file(path)?;
5752 let actual = sha256_file(path)?;
5753 ensure_eq(&actual, expected, field)
5754}
5755
5756fn archive_entry_bytes(archive_path: &Path, entry_name: &str) -> Result<Vec<u8>> {
5757 let file =

Callers 2

Calls 3

ensure_fileFunction · 0.85
ensure_eqFunction · 0.85
sha256_fileFunction · 0.70

Tested by

no test coverage detected