File: rr_test.go

package info (click to toggle)
golang-github-miekg-dns 1.1.68-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 1,260 kB
  • sloc: makefile: 3
file content (11 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
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
}