(t *testing.T)
| 130 | } |
| 131 | |
| 132 | func 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 | |
| 139 | func TestDNSRecord_Format(t *testing.T) { |
| 140 | name, value := DNSRecord("e2a202605", "mail.acme.com", "ABCDEF") |