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

Function connectJS

test/compat_test.go:526–533  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

524}
525
526func connectJS(t *testing.T) (*nats.Conn, nats.JetStreamContext) {
527 nc := connect(t)
528 js, err := nc.JetStream()
529 if err != nil {
530 t.Fatalf("Error getting JetStream context: %v", err)
531 }
532 return nc, js
533}
534
535type serviceStepConfig[T any] struct {
536 Suite string `json:"suite"`

Callers

nothing calls this directly

Calls 3

connectFunction · 0.85
JetStreamMethod · 0.80
FatalfMethod · 0.80

Tested by

no test coverage detected