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

Function TEST

crates/c-api/tests/component/types.cc:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using wasmtime::Store;
11
12TEST(types, empty_component) {
13 Engine engine;
14
15 auto component = Component::compile(engine, R"(
16(component)
17 )")
18 .unwrap()
19 .type();
20
21 EXPECT_EQ(component.import_count(engine), 0);
22 EXPECT_EQ(component.export_count(engine), 0);
23}
24
25TEST(types, component_resource) {
26 Engine engine;

Callers

nothing calls this directly

Calls 15

resultFunction · 0.85
import_getMethod · 0.80
component_instanceMethod · 0.80
param_nthMethod · 0.80
is_charMethod · 0.80
field_nthMethod · 0.80
types_countMethod · 0.80
types_nthMethod · 0.80
case_countMethod · 0.80
case_nthMethod · 0.80
optionMethod · 0.80
asyncMethod · 0.80

Tested by

no test coverage detected