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

Method Read

ntp/control/client_test.go:42–49  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

40 }
41}
42
43func (c *fakeConn) Read(p []byte) (n int, err error) {
44 pos := c.readCount
45 if c.readCount < len(c.outputs) {
46 c.readCount++
47 return c.outputs[pos].Read(p)
48 }
49 return 0, fmt.Errorf("EOF")
50}
51
52func (c *fakeConn) Write(p []byte) (n int, err error) {

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected