MCPcopy Create free account
hub / github.com/52funny/pikpakcli / TestShouldExitOnReadlineError

Function TestShouldExitOnReadlineError

internal/shell/shell_test.go:152–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

150}
151
152func TestShouldExitOnReadlineError(t *testing.T) {
153 require.True(t, shouldExitOnReadlineError(io.EOF))
154 require.False(t, shouldExitOnReadlineError(nil))
155 require.False(t, shouldExitOnReadlineError(readline.ErrInterrupt))
156 require.False(t, shouldExitOnReadlineError(errors.New("other error")))
157}
158
159func TestIsReadlineInterrupt(t *testing.T) {
160 require.True(t, isReadlineInterrupt(readline.ErrInterrupt))

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected