MCPcopy
hub / github.com/gorilla/websocket / TestUnexpectedCloseErrors

Function TestUnexpectedCloseErrors

conn_test.go:645–652  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

643}
644
645func TestUnexpectedCloseErrors(t *testing.T) {
646 for _, tt := range unexpectedCloseErrorTests {
647 ok := IsUnexpectedCloseError(tt.err, tt.codes...)
648 if ok != tt.ok {
649 t.Errorf("IsUnexpectedCloseError(%#v, %#v) returned %v, want %v", tt.err, tt.codes, ok, tt.ok)
650 }
651 }
652}
653
654type blockingWriter struct {
655 c1, c2 chan struct{}

Callers

nothing calls this directly

Calls 1

IsUnexpectedCloseErrorFunction · 0.85

Tested by

no test coverage detected