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

Function require_async_after_epochs

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

Source from the content-addressed store, hash-verified

88
89#[test]
90fn require_async_after_epochs() -> Result<()> {
91 let mut config = Config::new();
92 config.epoch_interruption(true);
93 let engine = Engine::new(&config)?;
94 let mut store = Store::new(&engine, ());
95 store.epoch_deadline_async_yield_and_update(1);
96 assert_requires_async(&mut store);
97 Ok(())
98}
99
100#[test]
101fn require_async_after_fuel() -> Result<()> {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected