diff options
Diffstat (limited to 'plugin/test/helpers.go')
-rw-r--r-- | plugin/test/helpers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/test/helpers.go b/plugin/test/helpers.go index fa89f9218..0c7e85f2a 100644 --- a/plugin/test/helpers.go +++ b/plugin/test/helpers.go @@ -99,6 +99,9 @@ func DNSKEY(rr string) *dns.DNSKEY { r, _ := dns.NewRR(rr); return r.(*dns.DNSKE // DS returns a DS record from rr. It panics on errors. func DS(rr string) *dns.DS { r, _ := dns.NewRR(rr); return r.(*dns.DS) } +// NAPTR returns a NAPTR record from rr. It panics on errors. +func NAPTR(rr string) *dns.NAPTR { r, _ := dns.NewRR(rr); return r.(*dns.NAPTR) } + // OPT returns an OPT record with UDP buffer size set to bufsize and the DO bit set to do. func OPT(bufsize int, do bool) *dns.OPT { o := new(dns.OPT) |