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

Function runs_simple_wast_file

crates/cli/src/wast_runner.rs:875–886  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

873
874 #[test]
875 fn runs_simple_wast_file() {
876 let dir = tempfile::tempdir().unwrap();
877 let path = dir.path().join("simple.wast");
878 std::fs::write(
879 &path,
880 "(module (func (export \"add\") (result i32) i32.const 1))\n(assert_return (invoke \"add\") (i32.const 1))",
881 )
882 .unwrap();
883
884 let mut runner = WastRunner::new();
885 runner.run_paths(&[path]).unwrap();
886 }
887}

Callers

nothing calls this directly

Calls 1

run_pathsMethod · 0.45

Tested by

no test coverage detected