We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bac920 commit 7632065Copy full SHA for 7632065
fileio_test.go
@@ -62,11 +62,6 @@ func totAllocMb() uint64 {
62
return bToMb(m.TotalAlloc)
63
}
64
65
-type devnull struct{}
66
-func (d devnull) Write(p []byte) (n int, err error) {
67
- return len(p), nil
68
-}
69
-
70
func TestWrite(t *testing.T) {
71
// 1Mb
72
f, _ := New(4*8*1024*1024, 1)
textmarshaler.go
@@ -12,6 +12,12 @@ package bloomfilter
12
13
import "fmt"
14
15
+type devnull struct{}
16
+
17
+func (d devnull) Write(p []byte) (n int, err error) {
18
+ return len(p), nil
19
+}
20
21
// MarshalText conforms to encoding.TextMarshaler
22
func (f *Filter) MarshalText() (text []byte, err error) {
23
f.lock.RLock()
0 commit comments