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

Function dummy_function_import

crates/fuzzing/src/oracles/dummy.rs:68–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67 #[test]
68 fn dummy_function_import() {
69 let mut store = store();
70 let func_ty = FuncType::new(store.engine(), vec![ValType::I32], vec![ValType::I64]);
71 let func = func_ty.default_value(&mut store).unwrap();
72 let actual_ty = func.ty(&store);
73 assert!(FuncType::eq(&actual_ty, &func_ty));
74 }
75}

Callers

nothing calls this directly

Calls 6

storeFunction · 0.70
newFunction · 0.50
engineMethod · 0.45
unwrapMethod · 0.45
default_valueMethod · 0.45
tyMethod · 0.45

Tested by

no test coverage detected