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

Function Equal

internal/test/assert/assert.go:12–18  ·  view source on GitHub ↗

Equal asserts exp == act.

(t testing.TB, name string, exp, got any)

Source from the content-addressed store, hash-verified

10
11// Equal asserts exp == act.
12func Equal(t testing.TB, name string, exp, got any) {
13 t.Helper()
14
15 if !reflect.DeepEqual(exp, got) {
16 t.Fatalf("unexpected %v: expected %#v but got %#v", name, exp, got)
17 }
18}
19
20// Success asserts err == nil.
21func Success(t testing.TB, err error) {

Callers 15

TestConnFunction · 0.92
BenchmarkConnFunction · 0.92
assertEchoFunction · 0.92
TestConnClosePropagationFunction · 0.92
Test_slidingWindowFunction · 0.92
testHeaderFunction · 0.92
Test_maskFunction · 0.92
TestCloseErrorFunction · 0.92
Test_parseClosePayloadFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestConnFunction · 0.74
BenchmarkConnFunction · 0.74
assertEchoFunction · 0.74
TestConnClosePropagationFunction · 0.74
Test_slidingWindowFunction · 0.74
testHeaderFunction · 0.74
Test_maskFunction · 0.74
TestCloseErrorFunction · 0.74
Test_parseClosePayloadFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…