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

Method RecordError

tests/runtime/results/intermediate.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30std::expected<float, test_exports::E2> test_exports::RecordError(float a) {
31 auto result = test_imports::RecordError(a);
32 if (result.has_value()) { return result.value(); }
33 return std::unexpected(test_exports::E2{ result.error().line, result.error().column });
34}
35
36template <class... Fs>
37struct overloaded : Fs... {

Callers

nothing calls this directly

Calls 3

unexpectedClass · 0.85
RecordErrorFunction · 0.70
has_valueMethod · 0.45

Tested by

no test coverage detected