MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestSign_RejectsEmptyKey

Function TestSign_RejectsEmptyKey

internal/dkim/dkim_test.go:132–137  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

130}
131
132func TestSign_RejectsEmptyKey(t *testing.T) {
133 _, err := Sign([]byte("From: a@b\r\n\r\nx"), "b", "e2a", nil)
134 if err == nil {
135 t.Error("expected error for empty private key, got nil")
136 }
137}
138
139func TestDNSRecord_Format(t *testing.T) {
140 name, value := DNSRecord("e2a202605", "mail.acme.com", "ABCDEF")

Callers

nothing calls this directly

Calls 2

SignFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected