| 9 | namespace test_exports = ::exports::test::results::test; |
| 10 | |
| 11 | std::expected<float, wit::string> test_exports::StringError(float a) { |
| 12 | if (a==0.0) { |
| 13 | return std::unexpected(wit::string::from_view("zero")); |
| 14 | } |
| 15 | else { |
| 16 | return a; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | std::expected<float, test_exports::E> test_exports::EnumError(float a) { |
| 21 | if (a==0.0) { |
no test coverage detected