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

Function TEST

crates/c-api/tests/store.cc:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20TEST(Store, Smoke) {
21 Engine engine;
22 Store store(engine);
23 Store store2 = std::move(store);
24 Store store3(std::move(store2));
25
26 store = Store(engine);
27 store.limiter(-1, -1, -1, -1, -1);
28 store.context().gc().unwrap();
29 store.context().get_fuel().err();
30 store.context().set_fuel(1).err();
31 store.context().set_epoch_deadline(1);
32}
33
34TEST(Store, EpochDeadlineCallback) {
35 Config config;

Callers

nothing calls this directly

Calls 15

unwrapFunction · 0.70
StoreClass · 0.50
compileFunction · 0.50
createFunction · 0.50
ErrorClass · 0.50
limiterMethod · 0.45
unwrapMethod · 0.45
gcMethod · 0.45
contextMethod · 0.45
errMethod · 0.45
get_fuelMethod · 0.45
set_fuelMethod · 0.45

Tested by

no test coverage detected