mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
test: add t.Helper() calls to test helper functions (#7351)
This commit is contained in:
@@ -56,6 +56,7 @@ func TestLookupCache(t *testing.T) {
|
||||
}
|
||||
|
||||
func testCase(t *testing.T, name, addr string, expectAnsLen int, expectTTL uint32) {
|
||||
t.Helper()
|
||||
m := new(dns.Msg)
|
||||
m.SetQuestion(name, dns.TypeA)
|
||||
resp, err := dns.Exchange(m, addr)
|
||||
@@ -74,6 +75,7 @@ func testCase(t *testing.T, name, addr string, expectAnsLen int, expectTTL uint3
|
||||
}
|
||||
|
||||
func testCaseDNSSEC(t *testing.T, name, addr string, bufsize int) {
|
||||
t.Helper()
|
||||
m := new(dns.Msg)
|
||||
m.SetQuestion(name, dns.TypeA)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user