| 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)
|
| + })
|
| +}
|
|
|