MCPcopy Index your code
hub / github.com/gotify/server / Read

Method Read

test/asserts.go:32–34  ·  view source on GitHub ↗
([]byte)

Source from the content-addressed store, hash-verified

30type unreadableReader struct{}
31
32func (c unreadableReader) Read([]byte) (int, error) {
33 return 0, errors.New("this reader cannot be read")
34}
35
36// UnreadableReader returns an unreadable reader, used to mock IO issues.
37func UnreadableReader() io.Reader {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected