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

Function Baz

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

Source from the content-addressed store, hash-verified

22 assert(a.value[1].get_view() == "value2");
23}
24Thing Baz(Thing a) {
25 for (char &c : a.name) {
26 c = std::toupper(c);
27 }
28 for (size_t i = 0; i < a.value.size(); ++i) {
29 for (char &c : a.value[i]) {
30 c = std::toupper(c);
31 }
32 }
33 return a;
34}
35namespace both_list_and_resource {
36void ListAndResource(Thing a) {
37 auto upper = a.b->ToUpper();

Callers 3

RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected