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

Method EmptyError

tests/runtime/results/leaf.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::expected<uint32_t, wit::Void> test_exports::EmptyError(uint32_t a) {
57 if (a==0) {
58 return std::unexpected(wit::Void{});
59 }
60 else if (a==1) {
61 return 42;
62 }
63 else {
64 return a;
65 }
66}
67
68std::expected<std::expected<void, wit::string>, wit::string> test_exports::DoubleError(uint32_t a) {
69 if (a==0) {

Callers 2

EmptyErrorFunction · 0.45
RunFunction · 0.45

Calls 1

unexpectedClass · 0.85

Tested by

no test coverage detected