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

Function verify_metadata_value

xtask/src/main.rs:5732–5735  ·  view source on GitHub ↗
(key: &str, expected: &str, field: &str)

Source from the content-addressed store, hash-verified

5730}
5731
5732fn verify_metadata_value(key: &str, expected: &str, field: &str) -> Result<()> {
5733 let actual = cargo_metadata_value(key)?;
5734 ensure_eq(&actual, expected, field)
5735}
5736
5737fn cargo_metadata_value(key: &str) -> Result<String> {
5738 let text = fs::read_to_string("Cargo.toml").context("read Cargo.toml")?;

Callers 1

Calls 2

cargo_metadata_valueFunction · 0.85
ensure_eqFunction · 0.85

Tested by

no test coverage detected