MCPcopy
hub / github.com/EngoEngine/engo / Read

Method Read

common/audio_test.go:164–169  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

162}
163
164func (t testReader) Read(p []byte) (int, error) {
165 if t.readError {
166 return 0, errors.New("Read Error")
167 }
168 return 0, io.EOF
169}
170
171func TestAudioLoaderLoadReadallError(t *testing.T) {
172 tr := testReader{readError: true}

Callers 1

readLoopMethod · 0.45

Calls 1

NewMethod · 0.45

Tested by

no test coverage detected