MCPcopy
hub / github.com/coder/websocket / ErrorIs

Function ErrorIs

internal/test/assert/assert.go:49–55  ·  view source on GitHub ↗

ErrorIs asserts errors.Is(got, exp)

(t testing.TB, exp, got error)

Source from the content-addressed store, hash-verified

47
48// ErrorIs asserts errors.Is(got, exp)
49func ErrorIs(t testing.TB, exp, got error) {
50 t.Helper()
51
52 if !errors.Is(got, exp) {
53 t.Fatalf("expected %v but got %v", exp, got)
54 }
55}

Callers 3

TestConnFunction · 0.92
TestConnClosePropagationFunction · 0.92
TestAcceptFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestConnFunction · 0.74
TestConnClosePropagationFunction · 0.74
TestAcceptFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…