Skip to content

Commit

Permalink
#43 update the test code
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Jan 5, 2025
1 parent 8737d35 commit 8d95c3f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sisimai/fact/lhost-code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,15 @@ func EngineTest(t *testing.T, enginename string, isexpected [][]IsExpected, publ

// Addresser
if fs.Addresser.Address == "" { t.Errorf("%s Addresser.Address is empty", ee) }; cx++
if fs.Addresser.Alias != "" { t.Errorf("%s Addresser.Alias is (%s) not empty", ee, fs.Addresser.Alias) }; cx++
if fs.Addresser.Verp != "" { t.Errorf("%s Addresser.Verp is (%s) not empty", ee, fs.Addresser.Verp) }; cx++
if fs.Addresser.User == "" { t.Errorf("%s Addresser.User is empty", ee) }; cx++
if sisiaddr.IsQuotedAddress(fs.Addresser.Address) == false {
if fs.Addresser.Alias != "" && strings.Contains(fs.Addresser.Address, "+") == false {
t.Errorf("%s Addresser.Alias is (%s) not empty", ee, fs.Addresser.Alias)
}; cx++
if fs.Addresser.Verp != "" && strings.Contains(fs.Addresser.Address, "=") == false {
t.Errorf("%s Addresser.Verp is (%s) not empty", ee, fs.Addresser.Verp)
}; cx++
}
if fs.Addresser.Host == "" { t.Errorf("%s Addresser.User is empty", ee) }; cx++
if fs.Addresser.Host != fs.SenderDomain {
// SenderDomain
Expand Down

0 comments on commit 8d95c3f

Please sign in to comment.