MCPcopy
hub / github.com/nats-io/nats.go / expectOk

Function expectOk

test/kv_test.go:1216–1221  ·  view source on GitHub ↗
(t *testing.T, err error)

Source from the content-addressed store, hash-verified

1214}
1215
1216func expectOk(t *testing.T, err error) {
1217 t.Helper()
1218 if err != nil {
1219 t.Fatalf("Unexpected error: %v", err)
1220 }
1221}
1222
1223func expectErr(t *testing.T, err error, expected ...error) {
1224 t.Helper()

Calls 1

FatalfMethod · 0.80

Tested by

no test coverage detected