blob: 429f3b60e170f24de8f98fcec7f99126b8ad5862 [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// 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{{Name: "a"}, {Name: "b"}},
}
b := issue.FindCC("b")
So(b, ShouldNotBeNil)
So(b.Name, ShouldEqual, "b")
c := issue.FindCC("c")
So(c, ShouldBeNil)
})
}