MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / OptionSomeParam

Method OptionSomeParam

tests/runtime/options/test.cpp:19–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void exports::test::options::to_test::OptionSomeParam(std::optional<wit::string> a) {
20 assert(equal(a, std::optional<std::string_view>("foo")));
21}
22
23std::optional<wit::string> exports::test::options::to_test::OptionSomeResult() {
24 return std::optional<wit::string>(wit::string::from_view("foo"));

Callers 1

RunMethod · 0.45

Calls 2

equalFunction · 0.70
assertFunction · 0.50

Tested by

no test coverage detected