Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: go/src/infra/libs/logging/memlogger/memory_test.go

Issue 1153883002: go: infra/libs/* now live in luci-go. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: move the rest too Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/libs/logging/memlogger/memory.go ('k') | go/src/infra/libs/parallel/parallel.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/libs/logging/memlogger/memory_test.go
diff --git a/go/src/infra/libs/logging/memlogger/memory_test.go b/go/src/infra/libs/logging/memlogger/memory_test.go
deleted file mode 100644
index dfb863e7d6ba8b02d33040c3bea18053024cdcce..0000000000000000000000000000000000000000
--- a/go/src/infra/libs/logging/memlogger/memory_test.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package memlogger
-
-import (
- "testing"
-
- "golang.org/x/net/context"
-
- . "github.com/smartystreets/goconvey/convey"
-
- "infra/libs/logging"
-)
-
-func TestLogger(t *testing.T) {
- Convey("logger", t, func() {
- c := Use(context.Background())
- l := logging.Get(c)
- So(l, ShouldNotBeNil)
- l.Infof("test %s", LogInfo)
- l.Warningf("test %s", LogWarn)
- l.Errorf("test %s", LogError)
- l.Errorf("test WAT: %s", LogLevel(9001))
- ml := l.(*MemLogger)
-
- So(len(*ml), ShouldEqual, 4)
- So((*ml)[0], ShouldResemble, LogEntry{LogInfo, "test IFO"})
- So((*ml)[1], ShouldResemble, LogEntry{LogWarn, "test WRN"})
- So((*ml)[2], ShouldResemble, LogEntry{LogError, "test ERR"})
- So((*ml)[3], ShouldResemble, LogEntry{LogError, "test WAT: ???"})
- })
-
- Convey("logger context", t, func() {
- c := Use(context.Background())
- l := logging.Get(c)
- So(l, ShouldNotBeNil)
- ml := l.(*MemLogger)
-
- l.Infof("totally works: %s", "yes")
-
- So(len(*ml), ShouldEqual, 1)
- So((*ml)[0], ShouldResemble, LogEntry{LogInfo, "totally works: yes"})
- })
-}
« no previous file with comments | « go/src/infra/libs/logging/memlogger/memory.go ('k') | go/src/infra/libs/parallel/parallel.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698