MCPcopy Create free account
hub / github.com/facebook/time / TestClientWriteNotConnected

Function TestClientWriteNotConnected

ntrip/client_test.go:225–230  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

223}
224
225func TestClientWriteNotConnected(t *testing.T) {
226 c := NewClient(Config{Caster: "localhost:2101", Mountpoint: "/M", Password: "p"})
227 _, err := c.Write([]byte("data"))
228 require.Error(t, err)
229 require.Contains(t, err.Error(), "not connected")
230}
231
232func TestClientWriteForwarding(t *testing.T) {
233 client, server := net.Pipe()

Callers

nothing calls this directly

Calls 3

WriteMethod · 0.95
NewClientFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…