github.com/grailbio/base@v0.0.11/cmd/grail-role-group/description_test.go (about)

     1  package main
     2  
     3  import "testing"
     4  
     5  func TestDescription(t *testing.T) {
     6  	cases := []struct {
     7  		group string
     8  		want  string
     9  	}{
    10  		{
    11  			"eng-dev-aws-role@grailbio.com",
    12  			"Please request access to this group if you need access to the eng/dev role account.",
    13  		},
    14  		{
    15  			"vendor-procured-samples-ticket@grailbio.com",
    16  			"Please request access to this group if you need access to the ticket vendor-procured-samples.",
    17  		},
    18  		{"eng", ""},
    19  		{"", ""},
    20  	}
    21  
    22  	for _, c := range cases {
    23  		got := description(c.group)
    24  		if got != c.want {
    25  			t.Errorf("description(%q): got %q, want %q", c.group, got, c.want)
    26  		}
    27  	}
    28  }