MCPcopy Create free account
hub / github.com/chain/txvm / Write

Method Write

errors/writer_test.go:44–51  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

42type testWriter []error
43
44func (tw *testWriter) Write(p []byte) (int, error) {
45 if len(*tw) == 0 {
46 return len(p), io.EOF
47 }
48 err := (*tw)[0]
49 *tw = (*tw)[1:]
50 return len(p), err
51}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected