MCPcopy Create free account
hub / github.com/gorilla/websocket / TestCloseError

Function TestCloseError

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

Source from the content-addressed store, hash-verified

613}
614
615func TestCloseError(t *testing.T) {
616 for _, tt := range closeErrorTests {
617 ok := IsCloseError(tt.err, tt.codes...)
618 if ok != tt.ok {
619 t.Errorf("IsCloseError(%#v, %#v) returned %v, want %v", tt.err, tt.codes, ok, tt.ok)
620 }
621 }
622}
623
624var unexpectedCloseErrorTests = []struct {
625 err error

Callers

nothing calls this directly

Calls 1

IsCloseErrorFunction · 0.85

Tested by

no test coverage detected