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

Method EnumError

tests/runtime/results/intermediate.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24std::expected<float, test_exports::E> test_exports::EnumError(float a) {
25 auto result = test_imports::EnumError(a);
26 if (result.has_value()) { return result.value(); }
27 return std::unexpected(to_exports_e(result.error()));
28}
29
30std::expected<float, test_exports::E2> test_exports::RecordError(float a) {
31 auto result = test_imports::RecordError(a);

Callers

nothing calls this directly

Calls 4

unexpectedClass · 0.85
to_exports_eFunction · 0.85
EnumErrorFunction · 0.70
has_valueMethod · 0.45

Tested by

no test coverage detected