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

Function require_async_after_fuel

tests/all/missing_async.rs:101–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100#[test]
101fn require_async_after_fuel() -> Result<()> {
102 let mut config = Config::new();
103 config.consume_fuel(true);
104 let engine = Engine::new(&config)?;
105 let mut store = Store::new(&engine, ());
106 store.fuel_async_yield_interval(Some(1))?;
107 assert_requires_async(&mut store);
108 Ok(())
109}
110
111#[test]
112fn require_async_after_async_limiter() -> Result<()> {

Callers

nothing calls this directly

Calls 5

OkFunction · 0.85
assert_requires_asyncFunction · 0.70
newFunction · 0.50
consume_fuelMethod · 0.45

Tested by

no test coverage detected