(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func TestNoneUnwrapOrElse(t *testing.T) { |
| 150 | require.Equal(t, o.None[int]().UnwrapOrElse(func() int { return 41 }), 41) |
| 151 | } |
| 152 | |
| 153 | func TestSomeUnwrapOrZero(t *testing.T) { |
| 154 | require.Equal(t, o.Some(42).UnwrapOrZero(), 42) |
nothing calls this directly
no test coverage detected