MCPcopy Create free account
hub / github.com/dotzero/git-profile / TestIsAborted

Function TestIsAborted

internal/ui/ui_test.go:20–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func 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}

Callers

nothing calls this directly

Calls 1

IsAbortedFunction · 0.85

Tested by

no test coverage detected