style: fix test name typo, table-test reporting, validator wording

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-23 20:32:33 +01:00
parent 32f5a8d933
commit 8e5c06a4cb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ func TestAuditListCoreRenders(t *testing.T) {
}
}
func TestAccountEditFromValidationRejectsMailformed(t *testing.T) {
func TestAccountEditFromValidationRejectsMalformed(t *testing.T) {
adminEnv(t)
// Seed an account so the failure is from --from validation, not a missing account.
run(t, "account", "add", "--name", "valacc", "--imap-host", "imap.x.com", "--username", "u@x.com")
+1 -1
View File
@@ -109,7 +109,7 @@ func TestEnvelopeFromStripsDisplayName(t *testing.T) {
}
for in, want := range cases {
if got := envelopeFrom(in); got != want {
t.Fatalf("envelopeFrom(%q) = %q, want %q", in, got, want)
t.Errorf("envelopeFrom(%q) = %q, want %q", in, got, want)
}
}
}
+1 -1
View File
@@ -36,7 +36,7 @@ func ValidFromAddress(s string) error {
return nil
}
if _, err := mail.ParseAddress(s); err != nil {
return errors.New("from address must be a valid email address")
return errors.New("from address must be a valid email address or \"Name <email>\"")
}
return nil
}