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

Function result

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

Source from the content-addressed store, hash-verified

149}
150
151static ValType result(const char *wat) {
152 Engine engine;
153 auto component = Component::compile(engine, wat).unwrap();
154 return *component.type().import_get(engine, "f")->component_func().result();
155}
156
157TEST(types, valtype_primitives) {
158 EXPECT_TRUE(

Callers 3

lowerMethod · 0.85
storeMethod · 0.85
TESTFunction · 0.85

Calls 5

import_getMethod · 0.80
compileFunction · 0.50
unwrapMethod · 0.45
resultMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected