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

Function Success

internal/test/assert/assert.go:21–27  ·  view source on GitHub ↗

Success asserts err == nil.

(t testing.TB, err error)

Source from the content-addressed store, hash-verified

19
20// Success asserts err == nil.
21func Success(t testing.TB, err error) {
22 t.Helper()
23
24 if err != nil {
25 t.Fatal(err)
26 }
27}
28
29// Error asserts err != nil.
30func Error(t testing.TB, err error) {

Callers 15

TestConnFunction · 0.92
BenchmarkConnFunction · 0.92
assertEchoFunction · 0.92
assertCloseFunction · 0.92
TestConcurrentClosePingFunction · 0.92
TestConnClosePropagationFunction · 0.92
testMaskFunction · 0.92
testHeaderFunction · 0.92
TestCloseErrorFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestConnFunction · 0.74
BenchmarkConnFunction · 0.74
assertEchoFunction · 0.74
assertCloseFunction · 0.74
TestConcurrentClosePingFunction · 0.74
TestConnClosePropagationFunction · 0.74
testMaskFunction · 0.74
testHeaderFunction · 0.74
TestCloseErrorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…