zerocomm: 'Fix' the test

This commit is contained in:
Łukasz Magiera
2020-02-27 01:56:09 +01:00
parent 767392332e
commit 2aeab13aae
3 changed files with 72 additions and 26 deletions
+10
View File
@@ -0,0 +1,10 @@
package nullreader
type Reader struct{}
func (Reader) Read(out []byte) (int, error) {
for i := range out {
out[i] = 0
}
return len(out), nil
}