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:
@@ -88,10 +88,11 @@ func TestCNameTargetRewrite(t *testing.T) {
|
||||
cnameTargetRule.Upstream = &MockedUpstream{}
|
||||
rules = append(rules, rule)
|
||||
}
|
||||
doTestCNameTargetTests(rules, t)
|
||||
doTestCNameTargetTests(t, rules)
|
||||
}
|
||||
|
||||
func doTestCNameTargetTests(rules []Rule, t *testing.T) {
|
||||
func doTestCNameTargetTests(t *testing.T, rules []Rule) {
|
||||
t.Helper()
|
||||
tests := []struct {
|
||||
from string
|
||||
fromType uint16
|
||||
|
||||
Reference in New Issue
Block a user