diff --git a/logging/mock_test.go b/logging/mock_test.go index 418b996..1d64fa0 100644 --- a/logging/mock_test.go +++ b/logging/mock_test.go @@ -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 } @@ -62,7 +61,7 @@ func newMock(t *testing.T) (*logger, *writerMap) { logMap[lv] = makeLogger(w) } // Set the default log level high enough that everything will get logged - return New(logMap, (1 << 31) - 1, false), wMap + return New(logMap, (1<<31)-1, false), wMap } // When you expect something to be logged but don't care so much what level at. @@ -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 {