(x uint32)
| 55 | } |
| 56 | |
| 57 | func DoubleError(x uint32) Result[Result[Unit, string], string] { |
| 58 | if x == 0 { |
| 59 | return Ok[Result[Unit, string], string]( |
| 60 | Ok[Unit, string](Unit{}), |
| 61 | ) |
| 62 | } else if x == 1 { |
| 63 | return Ok[Result[Unit, string], string]( |
| 64 | Err[Unit, string]("one"), |
| 65 | ) |
| 66 | } else { |
| 67 | return Err[Result[Unit, string], string]( |
| 68 | "two", |
| 69 | ) |
| 70 | } |
| 71 | } |
no outgoing calls
no test coverage detected