| 54 | } |
| 55 | |
| 56 | std::expected<uint32_t, wit::Void> test_exports::EmptyError(uint32_t a) { |
| 57 | if (a==0) { |
| 58 | return std::unexpected(wit::Void{}); |
| 59 | } |
| 60 | else if (a==1) { |
| 61 | return 42; |
| 62 | } |
| 63 | else { |
| 64 | return a; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | std::expected<std::expected<void, wit::string>, wit::string> test_exports::DoubleError(uint32_t a) { |
| 69 | if (a==0) { |
no test coverage detected