mirror of https://github.com/fluffle/goirc
gofix weekly fixes for logging.
This commit is contained in:
parent
f62470c091
commit
3710f67670
|
@ -1,7 +1,6 @@
|
|||
package logging
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
@ -13,7 +12,7 @@ type mockWriter struct {
|
|||
written []byte
|
||||
}
|
||||
|
||||
func (w *mockWriter) Write(p []byte) (n int, err os.Error) {
|
||||
func (w *mockWriter) Write(p []byte) (n int, err error) {
|
||||
w.written = append(w.written, p...)
|
||||
return len(p), nil
|
||||
}
|
||||
|
@ -89,7 +88,6 @@ func (wm *writerMap) Expect(exp string) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// When you expect nothing to be logged
|
||||
func (wm *writerMap) ExpectNothing() {
|
||||
for lv, w := range wm.m {
|
||||
|
|
Loading…
Reference in New Issue