| 66 | } |
| 67 | |
| 68 | std::expected<std::expected<void, wit::string>, wit::string> test_exports::DoubleError(uint32_t a) { |
| 69 | if (a==0) { |
| 70 | return std::expected<void, wit::string>(); |
| 71 | } |
| 72 | else if (a==1) { |
| 73 | return std::expected<void, wit::string>(std::unexpected(wit::string::from_view("one"))); |
| 74 | } |
| 75 | else { |
| 76 | return std::unexpected(wit::string::from_view("two")); |
| 77 | } |
| 78 | } |
no test coverage detected