dns/rr_test.go

12 lines
191 B
Go

package dns
// testRR is a helper that wraps a call to NewRR and panics if the error is non-nil.
func testRR(s string) RR {
r, err := NewRR(s)
if err != nil {
panic(err)
}
return r
}