Skip to content

Commit

Permalink
移除dnssec_test.go某些不适宜的测试函数
Browse files Browse the repository at this point in the history
  • Loading branch information
TochusC authored Nov 4, 2024
1 parent 6ab89f6 commit aa8c802
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dns/xperi/dnssec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
"github.com/tochusc/godns/dns"
)

// TestGenWrongKeyWithTag 测试 GenWrongKeyWithTag 函数
func TestGenWrongKeyWithTag(t *testing.T) {
key := GenWrongKeyWithTag(dns.DNSSECAlgorithmRSASHA256, dns.DNSKEYFlagZoneKey, 12345)
if CalculateKeyTag(key) != 12345 {
t.Errorf("Key Tag not match, got: %d, expected: %d", CalculateKeyTag(key), 12345)
}
}
// // TestGenWrongKeyWithTag 测试 GenWrongKeyWithTag 函数
// func TestGenWrongKeyWithTag(t *testing.T) {
// key := GenWrongKeyWithTag(dns.DNSSECAlgorithmRSASHA256, dns.DNSKEYFlagZoneKey, 12345)
// if CalculateKeyTag(key) != 12345 {
// t.Errorf("Key Tag not match, got: %d, expected: %d", CalculateKeyTag(key), 12345)
// }
// }

// TestGenKeyWithTag 测试 GenKeyWithTag 函数
// func TestGenKeyWithTag(t *testing.T) {
Expand Down

0 comments on commit aa8c802

Please sign in to comment.