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

Function main

crates/tinywasm/tests/test-wasm-custom.rs:5–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3use testsuite::TestSuite;
4
5fn main() -> Result<()> {
6 TestSuite::set_log_level(log::LevelFilter::Off);
7
8 let custom_dir = std::path::Path::new("./tests/wasm-custom");
9 let mut files: Vec<std::path::PathBuf> = std::fs::read_dir(custom_dir)?
10 .filter_map(|e| e.ok())
11 .map(|e| e.path())
12 .filter(|p| p.extension().is_some_and(|ext| ext == "wast"))
13 .collect();
14 files.sort();
15
16 let mut test_suite = TestSuite::new();
17 test_suite.run_paths(&files)?;
18 test_suite.report_status()
19}

Callers

nothing calls this directly

Calls 3

mapMethod · 0.80
report_statusMethod · 0.80
run_pathsMethod · 0.45

Tested by

no test coverage detected