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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package monorail
6
7 import (
8 "testing"
9
10 . "github.com/smartystreets/goconvey/convey"
11 )
12
13 func TestExt(t *testing.T) {
14 t.Parallel()
15
16 Convey("FindCC", t, func() {
17 issue := &Issue{
18 Cc: []*AtomPerson{{"a"}, {"b"}},
19 }
20 b := issue.FindCC("b")
21 So(b, ShouldNotBeNil)
22 So(b.Name, ShouldEqual, "b")
23
24 c := issue.FindCC("c")
25 So(c, ShouldBeNil)
26 })
27 }
OLDNEW
« 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