mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
test: add t.Helper() calls to test helper functions (#7351)
This commit is contained in:
@@ -71,6 +71,7 @@ func TestMetadata(t *testing.T) {
|
||||
}
|
||||
|
||||
func testMetadata(t *testing.T, state request.Request, geoIP *GeoIP, label, expectedValue string) {
|
||||
t.Helper()
|
||||
ctx := metadata.ContextWithMetadata(context.Background())
|
||||
rCtx := geoIP.Metadata(ctx, state)
|
||||
if fmt.Sprintf("%p", ctx) != fmt.Sprintf("%p", rCtx) {
|
||||
|
||||
Reference in New Issue
Block a user