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

Unified Diff: go/src/infra/monorail/ext_test.go

Issue 2037143002: Monorail client in Go (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: more tests Created 4 years, 6 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/monorail/ext.go ('k') | go/src/infra/monorail/generate.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/monorail/ext_test.go
diff --git a/go/src/infra/monorail/ext_test.go b/go/src/infra/monorail/ext_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..6d3fca306435dff89c1d77cf7ae86eb386e825fc
--- /dev/null
+++ b/go/src/infra/monorail/ext_test.go
@@ -0,0 +1,27 @@
+// Copyright 2016 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 monorail
+
+import (
+ "testing"
+
+ . "github.com/smartystreets/goconvey/convey"
+)
+
+func TestExt(t *testing.T) {
+ t.Parallel()
+
+ Convey("FindCC", t, func() {
+ issue := &Issue{
+ Cc: []*AtomPerson{{"a"}, {"b"}},
+ }
+ b := issue.FindCC("b")
+ So(b, ShouldNotBeNil)
+ So(b.Name, ShouldEqual, "b")
+
+ c := issue.FindCC("c")
+ So(c, ShouldBeNil)
+ })
+}
« no previous file with comments | « go/src/infra/monorail/ext.go ('k') | go/src/infra/monorail/generate.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698