(t *testing.T, tgt *Target, indx int, sender string, rcpt []string)
| 309 | } |
| 310 | |
| 311 | func CheckTestMessage(t *testing.T, tgt *Target, indx int, sender string, rcpt []string) { |
| 312 | t.Helper() |
| 313 | |
| 314 | if len(tgt.Messages) <= indx { |
| 315 | t.Errorf("wrong amount of messages received, want at least %d, got %d", indx+1, len(tgt.Messages)) |
| 316 | return |
| 317 | } |
| 318 | msg := tgt.Messages[indx] |
| 319 | |
| 320 | CheckMsg(t, &msg, sender, rcpt) |
| 321 | } |
| 322 | |
| 323 | func CheckMsg(t *testing.T, msg *Msg, sender string, rcpt []string) { |
| 324 | t.Helper() |