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

Function eqref_ty_i31

tests/all/gc.rs:2939–2945  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2937
2938#[test]
2939fn eqref_ty_i31() -> Result<()> {
2940 let mut store = gc_store()?;
2941 let eq = EqRef::from_i31(&mut store, I31::wrapping_u32(10));
2942 let ty = eq.ty(&store)?;
2943 assert!(matches!(ty, HeapType::I31));
2944 Ok(())
2945}
2946
2947#[test]
2948#[cfg_attr(miri, ignore)]

Callers

nothing calls this directly

Calls 3

gc_storeFunction · 0.85
OkFunction · 0.85
tyMethod · 0.45

Tested by

no test coverage detected