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

Function Error

internal/test/assert/assert.go:30–36  ·  view source on GitHub ↗

Error asserts err != nil.

(t testing.TB, err error)

Source from the content-addressed store, hash-verified

28
29// Error asserts err != nil.
30func Error(t testing.TB, err error) {
31 t.Helper()
32
33 if err == nil {
34 t.Fatal("expected error")
35 }
36}
37
38// Contains asserts the fmt.Sprint(v) contains sub.
39func Contains(t testing.TB, v any, sub string) {

Callers 7

TestCloseErrorFunction · 0.92
Test_parseClosePayloadFunction · 0.92
Test_authenticateOriginFunction · 0.92
TestWasmDialTimeoutFunction · 0.92
TestBadDialsFunction · 0.92

Calls

no outgoing calls

Tested by 7

TestCloseErrorFunction · 0.74
Test_parseClosePayloadFunction · 0.74
Test_authenticateOriginFunction · 0.74
TestWasmDialTimeoutFunction · 0.74
TestBadDialsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…