diff options
Diffstat (limited to 'generator/app_test.go')
| -rw-r--r-- | generator/app_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/generator/app_test.go b/generator/app_test.go index b282a3f2..965e0d47 100644 --- a/generator/app_test.go +++ b/generator/app_test.go @@ -17,11 +17,9 @@ limitations under the License. package main import ( - "fmt" "io/ioutil" "os" "path/filepath" - "reflect" "strings" "testing" ) @@ -150,34 +148,6 @@ func TestGroupDirName(t *testing.T) { } } -func TestSetupGithubTeams(t *testing.T) { - group := Group{Name: "Foo Bar"} - group.SetupGitHubTeams("sig") - - var expected []string - for _, ght := range githubTeamNames { - expected = append(expected, fmt.Sprintf("sig-foo-bar-%s", ght)) - } - - if !reflect.DeepEqual(group.Contact.GithubTeamNames, expected) { - t.Fatalf("%v does not match %v", group.Contact.GithubTeamNames, expected) - } -} - -func TestCustomPrefixSetupGithubTeams(t *testing.T) { - group := Group{Contact: Contact{GithubTeamPrefix: "foo"}} - group.SetupGitHubTeams("") - - var expected []string - for _, ght := range githubTeamNames { - expected = append(expected, fmt.Sprintf("foo-%s", ght)) - } - - if !reflect.DeepEqual(group.Contact.GithubTeamNames, expected) { - t.Fatalf("%v does not match %v", group.Contact.GithubTeamNames, expected) - } -} - func TestCreateGroupReadmes(t *testing.T) { baseGeneratorDir = "generated" templateDir = "../../generator" |
