MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / verify

Method verify

crates/test/src/moonbit.rs:132–145  ·  view source on GitHub ↗
(&self, runner: &Runner, verify: &crate::Verify)

Source from the content-addressed store, hash-verified

130 }
131
132 fn verify(&self, runner: &Runner, verify: &crate::Verify) -> anyhow::Result<()> {
133 let mut cmd = Command::new("moon");
134 cmd.arg("check")
135 .arg("--warn-list")
136 .arg("-28") // avoid warning noise in generated bindings
137 .current_dir(&verify.bindings_dir);
138
139 runner.run_command(&mut cmd)?;
140 let mut cmd = Command::new("moon");
141 cmd.arg("build").current_dir(&verify.bindings_dir);
142
143 runner.run_command(&mut cmd)?;
144 Ok(())
145 }
146}

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
run_commandMethod · 0.80

Tested by

no test coverage detected