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

Method schedule_pass_job

cranelift/filetests/src/runner.rs:227–238  ·  view source on GitHub ↗

Schedule any new job to run for the pass command.

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

Source from the content-addressed store, hash-verified

225
226 /// Schedule any new job to run for the pass command.
227 fn schedule_pass_job(&mut self, passes: &[String], target: &str) {
228 self.tests[0].state = State::Running;
229 let result: anyhow::Result<time::Duration>;
230
231 let specified_target = match target {
232 "" => None,
233 targ => Some(targ),
234 };
235
236 result = runone::run(self.tests[0].path(), Some(passes), specified_target);
237 self.finish_job(0, result);
238 }
239
240 /// Report the end of a job.
241 fn finish_job(&mut self, jobid: usize, result: anyhow::Result<time::Duration>) {

Callers 1

run_passesMethod · 0.80

Calls 3

finish_jobMethod · 0.80
runFunction · 0.70
pathMethod · 0.45

Tested by

no test coverage detected