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

Method EnumError

tests/runtime/results/leaf.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20std::expected<float, test_exports::E> test_exports::EnumError(float a) {
21 if (a==0.0) {
22 return std::unexpected(test_exports::E::kA);
23 }
24 else {
25 return a;
26 }
27}
28
29std::expected<float, test_exports::E2> test_exports::RecordError(float a) {
30 if (a==0.0) {

Callers 2

EnumErrorFunction · 0.45
RunFunction · 0.45

Calls 1

unexpectedClass · 0.85

Tested by

no test coverage detected