diff options
| author | Pedro Lopes <pedrolopes@google.com> | 2020-07-28 15:55:14 -0500 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-31 17:18:29 +0200 |
| commit | 242b0eb219dbb269deacdae76de2f8b0b788ac40 (patch) | |
| tree | 2a1350d88d2550069a295ca7b093b00664209e64 /pkg/vcs/git_test.go | |
| parent | 68aca71e8de884b64dc78a5d5406ca232460c1cf (diff) | |
pkg: get and store Maintainers data
Create a struct on pkg/vcs to store data of syzkaller email recipients
and update its users. The struct contains default name, email, and a
label to divide user into To and Cc when sending the emails.
Diffstat (limited to 'pkg/vcs/git_test.go')
| -rw-r--r-- | pkg/vcs/git_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/vcs/git_test.go b/pkg/vcs/git_test.go index eb4ca5328..62a5ee06f 100644 --- a/pkg/vcs/git_test.go +++ b/pkg/vcs/git_test.go @@ -37,7 +37,7 @@ Signed-off-by: Linux Master <linux@linux-foundation.org> Title: "rbtree: include rcu.h", Author: "foobar@foobar.de", AuthorName: "Foo Bar", - CC: []string{ + Recipients: NewRecipients([]string{ "and@me.com", "another@email.de", "foobar@foobar.de", @@ -46,7 +46,7 @@ Signed-off-by: Linux Master <linux@linux-foundation.org> "name@name.com", "subsystem@reviewer.com", "yetanother@email.org", - }, + }, To), Date: time.Date(2018, 5, 11, 16, 02, 14, 0, time.FixedZone("", -7*60*60)), }, } @@ -70,7 +70,7 @@ Signed-off-by: Linux Master <linux@linux-foundation.org> if com.Author != res.Author { t.Fatalf("want author %q, got %q", com.Author, res.Author) } - if diff := cmp.Diff(com.CC, res.CC); diff != "" { + if diff := cmp.Diff(com.Recipients, res.Recipients); diff != "" { t.Fatalf("bad CC: %v", diff) } if !com.Date.Equal(res.Date) { |
