MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestNormalizeAddrsDisplayName

Function TestNormalizeAddrsDisplayName

internal/outbound/sender_test.go:24–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func 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
35func TestNormalizeAddrsInvalid(t *testing.T) {
36 _, err := normalizeAddrs([]string{"not-an-email"})

Callers

nothing calls this directly

Calls 1

normalizeAddrsFunction · 0.85

Tested by

no test coverage detected