diff options
author | 2017-06-18 19:50:38 +0100 | |
---|---|---|
committer | 2017-06-18 19:50:38 +0100 | |
commit | 50ab28aa23066e880592afaf65d8f648d91e3f92 (patch) | |
tree | 24aa1137a5011f28966b0bf591961576767f4af0 | |
parent | e039bbc322fd28bee2ebe7f174ea85e81b47f982 (diff) | |
download | coredns-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.go | 2 | ||||
-rw-r--r-- | middleware/file/file_test.go | 2 | ||||
-rw-r--r-- | middleware/file/lookup_test.go | 2 | ||||
-rw-r--r-- | test/proxy_test.go | 2 |
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 { |