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

Function rejects_wrong_arity

crates/cli/src/value_parse.rs:53–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52 #[test]
53 fn rejects_wrong_arity() {
54 let ty = FuncType::new(&[WasmType::I32], &[]);
55 let err = parse_invocation_args(&ty, &[]).unwrap_err();
56 assert!(err.to_string().contains("wrong number of arguments"));
57 }
58}

Callers

nothing calls this directly

Calls 1

parse_invocation_argsFunction · 0.85

Tested by

no test coverage detected