(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func TestNormalizeAddrsDisplayName(t *testing.T) { |
| 25 | got, err := normalizeAddrs([]string{"Alice <alice@GMAIL.com>"}) |
| 26 | if err != nil { |
| 27 | t.Fatalf("normalizeAddrs: %v", err) |
| 28 | } |
| 29 | want := []string{"alice@gmail.com"} |
| 30 | if !reflect.DeepEqual(got, want) { |
| 31 | t.Errorf("got %v, want %v", got, want) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestNormalizeAddrsInvalid(t *testing.T) { |
| 36 | _, err := normalizeAddrs([]string{"not-an-email"}) |
nothing calls this directly
no test coverage detected