From 242b0eb219dbb269deacdae76de2f8b0b788ac40 Mon Sep 17 00:00:00 2001 From: Pedro Lopes Date: Tue, 28 Jul 2020 15:55:14 -0500 Subject: 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. --- pkg/vcs/git_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/vcs/git_test.go') 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 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 "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 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) { -- cgit mrf-deployment