aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-06-18 19:50:38 +0100
committerGravatar GitHub <noreply@github.com> 2017-06-18 19:50:38 +0100
commit50ab28aa23066e880592afaf65d8f648d91e3f92 (patch)
tree24aa1137a5011f28966b0bf591961576767f4af0
parente039bbc322fd28bee2ebe7f174ea85e81b47f982 (diff)
downloadcoredns-50ab28aa23066e880592afaf65d8f648d91e3f92.tar.gz
coredns-50ab28aa23066e880592afaf65d8f648d91e3f92.tar.zst
coredns-50ab28aa23066e880592afaf65d8f648d91e3f92.zip
mw/file: rename to BenchmarkFileLookup (#741)
In grafana we miss the context of where this is called, make the name more descriptive. Also test the GH webhook.
-rw-r--r--middleware/file/dnssec_test.go2
-rw-r--r--middleware/file/file_test.go2
-rw-r--r--middleware/file/lookup_test.go2
-rw-r--r--test/proxy_test.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/middleware/file/dnssec_test.go b/middleware/file/dnssec_test.go
index edd4794e2..95bc74ed1 100644
--- a/middleware/file/dnssec_test.go
+++ b/middleware/file/dnssec_test.go
@@ -169,7 +169,7 @@ func TestLookupDNSSEC(t *testing.T) {
}
}
-func BenchmarkLookupDNSSEC(b *testing.B) {
+func BenchmarkFileLookupDNSSEC(b *testing.B) {
zone, err := Parse(strings.NewReader(dbMiekNLSigned), testzone, "stdin", 0)
if err != nil {
return
diff --git a/middleware/file/file_test.go b/middleware/file/file_test.go
index ae17624f9..02668785b 100644
--- a/middleware/file/file_test.go
+++ b/middleware/file/file_test.go
@@ -5,7 +5,7 @@ import (
"testing"
)
-func BenchmarkParseInsert(b *testing.B) {
+func BenchmarkFileParseInsert(b *testing.B) {
for i := 0; i < b.N; i++ {
Parse(strings.NewReader(dbMiekENTNL), testzone, "stdin", 0)
}
diff --git a/middleware/file/lookup_test.go b/middleware/file/lookup_test.go
index 63bfb9fa8..9be6ae542 100644
--- a/middleware/file/lookup_test.go
+++ b/middleware/file/lookup_test.go
@@ -154,7 +154,7 @@ func TestLookupNil(t *testing.T) {
fm.ServeDNS(ctx, rec, m)
}
-func BenchmarkLookup(b *testing.B) {
+func BenchmarkFileLookup(b *testing.B) {
zone, err := Parse(strings.NewReader(dbMiekNL), testzone, "stdin", 0)
if err != nil {
return
diff --git a/test/proxy_test.go b/test/proxy_test.go
index 7e85a0c87..1e90048f6 100644
--- a/test/proxy_test.go
+++ b/test/proxy_test.go
@@ -100,7 +100,7 @@ func TestLookupDnsWithForcedTcp(t *testing.T) {
}
}
-func BenchmarkLookupProxy(b *testing.B) {
+func BenchmarkProxyLookup(b *testing.B) {
t := new(testing.T)
name, rm, err := test.TempFile(".", exampleOrg)
if err != nil {