| 92 | Span<const Val>, Span<Val>); |
| 93 | |
| 94 | static 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 | |
| 103 | TEST(component, value_record) { |
| 104 | static const auto check = [](const Val &v, uint64_t x, uint64_t y) { |
no test coverage detected