MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / stats

Method stats

crates/cli/src/wast_runner.rs:562–572  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

560 }
561
562 fn stats(&self) -> (usize, usize) {
563 let mut passed = 0;
564 let mut failed = 0;
565 for test in &self.tests {
566 match test.result {
567 Ok(()) => passed += 1,
568 Err(_) => failed += 1,
569 }
570 }
571 (passed, failed)
572 }
573
574 fn add_result(&mut self, name: &str, linecol: (usize, usize), result: Result<()>) {
575 self.tests.push(TestCase { name: name.to_string(), linecol, result });

Callers 2

failedMethod · 0.80
group_resultsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected