diff --git a/client_test.go b/client_test.go index 9691a9cd..2113f3b0 100644 --- a/client_test.go +++ b/client_test.go @@ -165,7 +165,7 @@ func TestClientAXFRMultipleEnvelopes(t *testing.T) { } */ -// ExapleUpdateLeaseTSIG shows how to update a lease signed with TSIG. +// ExampleUpdateLeaseTSIG shows how to update a lease signed with TSIG. func ExampleUpdateLeaseTSIG(t *testing.T) { m := new(Msg) m.SetUpdate("t.local.ip6.io.") diff --git a/parse_test.go b/parse_test.go index 3c18b38d..1b7f0d37 100644 --- a/parse_test.go +++ b/parse_test.go @@ -1225,23 +1225,6 @@ func TestMalformedPackets(t *testing.T) { } } -func TestDynamicUpdateParsing(t *testing.T) { - prefix := "example.com. IN " - for _, typ := range TypeToString { - if typ == "CAA" || typ == "OPT" || typ == "AXFR" || typ == "IXFR" || typ == "ANY" || typ == "TKEY" || - typ == "TSIG" || typ == "ISDN" || typ == "UNSPEC" || typ == "NULL" || typ == "ATMA" { - continue - } - r, e := NewRR(prefix + typ) - if e != nil { - t.Log("failure to parse: " + prefix + typ) - t.Fail() - } else { - t.Logf("parsed: %s", r.String()) - } - } -} - type algorithm struct { name uint8 bits int diff --git a/update_test.go b/update_test.go new file mode 100644 index 00000000..04030100 --- /dev/null +++ b/update_test.go @@ -0,0 +1,19 @@ +package dns + +func TestDynamicUpdateParsing(t *testing.T) { + prefix := "example.com. IN " + for _, typ := range TypeToString { + if typ == "CAA" || typ == "OPT" || typ == "AXFR" || typ == "IXFR" || typ == "ANY" || typ == "TKEY" || + typ == "TSIG" || typ == "ISDN" || typ == "UNSPEC" || typ == "NULL" || typ == "ATMA" { + continue + } + r, e := NewRR(prefix + typ) + if e != nil { + t.Log("failure to parse: " + prefix + typ) + t.Fail() + } else { + t.Logf("parsed: %s", r.String()) + } + } +} +