(t *testing.T)
| 18 | } |
| 19 | |
| 20 | func TestIsAborted(t *testing.T) { |
| 21 | is := is.New(t) |
| 22 | |
| 23 | is.True(IsAborted(huh.ErrUserAborted)) |
| 24 | is.True(IsAborted(fmt.Errorf("wrapped: %w", huh.ErrUserAborted))) |
| 25 | is.True(!IsAborted(fmt.Errorf("other error"))) |
| 26 | } |
nothing calls this directly
no test coverage detected