(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestNormalizeAddrs(t *testing.T) { |
| 14 | got, err := normalizeAddrs([]string{"Alice@Gmail.COM", " bob@test.com ", ""}) |
| 15 | if err != nil { |
| 16 | t.Fatalf("normalizeAddrs: %v", err) |
| 17 | } |
| 18 | want := []string{"alice@gmail.com", "bob@test.com"} |
| 19 | if !reflect.DeepEqual(got, want) { |
| 20 | t.Errorf("got %v, want %v", got, want) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func TestNormalizeAddrsDisplayName(t *testing.T) { |
| 25 | got, err := normalizeAddrs([]string{"Alice <alice@GMAIL.com>"}) |
nothing calls this directly
no test coverage detected