MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / run_passes

Method run_passes

cranelift/filetests/src/runner.rs:372–384  ·  view source on GitHub ↗

Scan pushed directories for tests and run specified passes from commandline on them.

(&mut self, passes: &[String], target: &str)

Source from the content-addressed store, hash-verified

370
371 /// Scan pushed directories for tests and run specified passes from commandline on them.
372 pub fn run_passes(&mut self, passes: &[String], target: &str) -> anyhow::Result<()> {
373 self.scan_dirs(IsPass::Pass);
374 self.schedule_pass_job(passes, target);
375 self.report_slow_tests();
376 self.drain_threads();
377
378 println!("{} tests", self.tests.len());
379 match self.errors {
380 0 => Ok(()),
381 1 => anyhow::bail!("1 failure"),
382 n => anyhow::bail!("{n} failures"),
383 }
384 }
385}

Callers 1

run_passesFunction · 0.80

Calls 5

OkFunction · 0.85
scan_dirsMethod · 0.80
schedule_pass_jobMethod · 0.80
report_slow_testsMethod · 0.80
drain_threadsMethod · 0.80

Tested by

no test coverage detected