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

Function jsClient

jetstream/test/kv_test.go:1835–1843  ·  view source on GitHub ↗
(t *testing.T, s *server.Server, opts ...nats.Option)

Source from the content-addressed store, hash-verified

1833}
1834
1835func jsClient(t *testing.T, s *server.Server, opts ...nats.Option) (*nats.Conn, jetstream.JetStream) {
1836 t.Helper()
1837 nc := client(t, s, opts...)
1838 js, err := jetstream.New(nc)
1839 if err != nil {
1840 t.Fatalf("Unexpected error getting JetStream context: %v", err)
1841 }
1842 return nc, js
1843}
1844
1845func expectOk(t *testing.T, err error) {
1846 t.Helper()

Callers 15

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

Calls 3

NewFunction · 0.92
FatalfMethod · 0.80
clientFunction · 0.70

Tested by

no test coverage detected