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

Function Bar

tests/runtime/cpp/param-ownership/test.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void Bar(Thing a) {
19 assert(a.name.get_view() == "thing");
20 assert(a.value.size() == 2);
21 assert(a.value[0].get_view() == "value1");
22 assert(a.value[1].get_view() == "value2");
23}
24Thing Baz(Thing a) {
25 for (char &c : a.name) {
26 c = std::toupper(c);

Callers 4

RunMethod · 0.70
RunMethod · 0.70
RunMethod · 0.70
RunMethod · 0.50

Calls 3

assertFunction · 0.50
get_viewMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected