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

Function CheckMsg

internal/testutils/target.go:323–330  ·  view source on GitHub ↗
(t *testing.T, msg *Msg, sender string, rcpt []string)

Source from the content-addressed store, hash-verified

321}
322
323func CheckMsg(t *testing.T, msg *Msg, sender string, rcpt []string) {
324 t.Helper()
325
326 idRaw := sha1.Sum([]byte(t.Name()))
327 encodedId := hex.EncodeToString(idRaw[:])
328
329 CheckMsgID(t, msg, sender, rcpt, encodedId)
330}
331
332func CheckMsgID(t *testing.T, msg *Msg, sender string, rcpt []string, id string) string {
333 t.Helper()

Callers 1

CheckTestMessageFunction · 0.85

Calls 2

CheckMsgIDFunction · 0.85
NameMethod · 0.65

Tested by

no test coverage detected