MCPcopy Index your code
hub / github.com/foxcpp/maddy / CheckTestMessage

Function CheckTestMessage

internal/testutils/target.go:311–321  ·  view source on GitHub ↗
(t *testing.T, tgt *Target, indx int, sender string, rcpt []string)

Source from the content-addressed store, hash-verified

309}
310
311func 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
323func CheckMsg(t *testing.T, msg *Msg, sender string, rcpt []string) {
324 t.Helper()

Calls 1

CheckMsgFunction · 0.85