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

Function create

crates/c-api/tests/component/values.cc:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 Span<const Val>, Span<Val>);
93
94static Context create(std::string_view type, std::string_view body,
95 std::string_view host_params, host_func_t callback) {
96 Engine engine;
97 Linker linker(engine);
98 linker.root().add_func("do", callback).unwrap();
99 auto component_text = echo_component(type, body, host_params);
100 return Context::New(engine, component_text, linker);
101}
102
103TEST(component, value_record) {
104 static const auto check = [](const Val &v, uint64_t x, uint64_t y) {

Callers 15

TESTFunction · 0.70
writeMethod · 0.50
mainFunction · 0.50
run_solverFunction · 0.50
get_ctxFunction · 0.50
mainFunction · 0.50
runFunction · 0.50
bench_wasiFunction · 0.50
executeMethod · 0.50
executeMethod · 0.50
setup_guest_profilerFunction · 0.50

Calls 4

echo_componentFunction · 0.85
unwrapMethod · 0.45
add_funcMethod · 0.45
rootMethod · 0.45

Tested by

no test coverage detected