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

Unified Diff: common/meter/config_test.go

Issue 1679023005: Add Context cancellation to clock. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Actually upload the patch. Created 4 years, 10 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 | « common/meter/config.go ('k') | common/meter/doc.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/meter/config_test.go
diff --git a/common/meter/config_test.go b/common/meter/config_test.go
deleted file mode 100644
index f9d36431b4b334ed13b47919527f666308c1e65d..0000000000000000000000000000000000000000
--- a/common/meter/config_test.go
+++ /dev/null
@@ -1,33 +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 meter
-
-import (
- "testing"
- "time"
-
- . "github.com/smartystreets/goconvey/convey"
-)
-
-func TestConfig(t *testing.T) {
- Convey(`An zero (unmetered) config instance`, t, func() {
- cfg := new(Config)
-
- Convey(`It will register as unconstained.`, func() {
- So(cfg.HasFlushConstraints(), ShouldBeFalse)
- })
- })
-
- Convey(`A configured config instance`, t, func() {
- cfg := &Config{
- Count: 10,
- Delay: 1 * time.Second,
- }
-
- Convey(`Will register as metered.`, func() {
- So(cfg.HasFlushConstraints(), ShouldBeTrue)
- })
- })
-}
« no previous file with comments | « common/meter/config.go ('k') | common/meter/doc.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698