| 27 | } |
| 28 | |
| 29 | std::expected<float, test_exports::E2> test_exports::RecordError(float a) { |
| 30 | if (a==0.0) { |
| 31 | return std::unexpected(test_exports::E2{420, 0}); |
| 32 | } |
| 33 | else if (a==1.0) { |
| 34 | return std::unexpected(test_exports::E2{77, 2}); |
| 35 | } |
| 36 | else { |
| 37 | return a; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | std::expected<float, test_exports::E3> test_exports::VariantError(float a) { |
| 42 | if (a==0.0) { |
no test coverage detected