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

Method close

ws_test.go:60–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func (f *fakeReader) close() {
61 f.mu.Lock()
62 defer f.mu.Unlock()
63 if f.closed {
64 return
65 }
66 f.closed = true
67 close(f.ch)
68}
69
70func TestWSReader(t *testing.T) {
71 mr := &fakeReader{ch: make(chan []byte, 1)}

Callers 4

TestWSReaderFunction · 0.95
TestWSParseControlFramesFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected