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 cb7b0994b..99271df1e 100644 --- a/plugin/test/helpers.go +++ b/plugin/test/helpers.go @@ -82,6 +82,9 @@ func PTR(rr string) *dns.PTR { r, _ := dns.NewRR(rr); return r.(*dns.PTR) } // TXT returns a TXT record from rr. It panics on errors. func TXT(rr string) *dns.TXT { r, _ := dns.NewRR(rr); return r.(*dns.TXT) } +// CAA returns a CAA record from rr. It panics on errors. +func CAA(rr string) *dns.CAA { r, _ := dns.NewRR(rr); return r.(*dns.CAA) } + // HINFO returns a HINFO record from rr. It panics on errors. func HINFO(rr string) *dns.HINFO { r, _ := dns.NewRR(rr); return r.(*dns.HINFO) } |