MCPcopy Index your code
hub / github.com/coder/slog / Test_errorsIsAny

Function Test_errorsIsAny

internal/syncwriter/syncwriter_test.go:106–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func Test_errorsIsAny(t *testing.T) {
107 t.Parallel()
108
109 assert.True(t, "err", errorsIsAny(io.EOF, io.ErrUnexpectedEOF, io.EOF))
110 assert.False(t, "err", errorsIsAny(io.EOF, io.ErrUnexpectedEOF, io.ErrClosedPipe))
111}
112
113type syncWriter struct {
114 wf func([]byte) (int, error)

Callers

nothing calls this directly

Calls 3

TrueFunction · 0.92
FalseFunction · 0.92
errorsIsAnyFunction · 0.85

Tested by

no test coverage detected