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

Function to_exports_e

tests/runtime/results/intermediate.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16test_exports::E to_exports_e(test_imports::E e) {
17 switch (e) {
18 case test_imports::E::kA: return test_exports::E::kA;
19 case test_imports::E::kB: return test_exports::E::kB;
20 case test_imports::E::kC: return test_exports::E::kC;
21 }
22}
23
24std::expected<float, test_exports::E> test_exports::EnumError(float a) {
25 auto result = test_imports::EnumError(a);

Callers 2

EnumErrorMethod · 0.85
VariantErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected