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

Function TestDefaultConnection

test/conn_test.go:41–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39)
40
41func TestDefaultConnection(t *testing.T) {
42 s := RunDefaultServer()
43 defer s.Shutdown()
44
45 nc := NewDefaultConnection(t)
46 nc.Close()
47}
48
49func TestConnectionStatus(t *testing.T) {
50 s := RunDefaultServer()

Callers

nothing calls this directly

Calls 3

RunDefaultServerFunction · 0.70
NewDefaultConnectionFunction · 0.70
CloseMethod · 0.45

Tested by

no test coverage detected