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

Function expectOk

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

Source from the content-addressed store, hash-verified

1843}
1844
1845func expectOk(t *testing.T, err error) {
1846 t.Helper()
1847 if err != nil {
1848 t.Fatalf("Unexpected error: %v", err)
1849 }
1850}
1851
1852func expectErr(t *testing.T, err error, expected ...error) {
1853 t.Helper()

Callers 15

TestKeyValueBasicsFunction · 0.70
TestKeyValueTTLFunction · 0.70
TestCreateKeyValueFunction · 0.70
TestUpdateKeyValueFunction · 0.70
TestKeyValueHistoryFunction · 0.70
TestKeyValueWatchFunction · 0.70
TestKeyValueWatchContextFunction · 0.70
TestKeyValueBindStoreFunction · 0.70
TestKeyValueDeleteStoreFunction · 0.70

Calls 1

FatalfMethod · 0.80

Tested by

no test coverage detected