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

Function TestNormalizeAddrs

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

Source from the content-addressed store, hash-verified

11)
12
13func 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
24func TestNormalizeAddrsDisplayName(t *testing.T) {
25 got, err := normalizeAddrs([]string{"Alice <alice@GMAIL.com>"})

Callers

nothing calls this directly

Calls 1

normalizeAddrsFunction · 0.85

Tested by

no test coverage detected