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.
This commit is contained in:
Miek Gieben 2017-06-18 19:50:38 +01:00 committed by GitHub
parent e039bbc322
commit 50ab28aa23
4 changed files with 4 additions and 4 deletions

View file

@ -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) zone, err := Parse(strings.NewReader(dbMiekNLSigned), testzone, "stdin", 0)
if err != nil { if err != nil {
return return

View file

@ -5,7 +5,7 @@ import (
"testing" "testing"
) )
func BenchmarkParseInsert(b *testing.B) { func BenchmarkFileParseInsert(b *testing.B) {
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
Parse(strings.NewReader(dbMiekENTNL), testzone, "stdin", 0) Parse(strings.NewReader(dbMiekENTNL), testzone, "stdin", 0)
} }

View file

@ -154,7 +154,7 @@ func TestLookupNil(t *testing.T) {
fm.ServeDNS(ctx, rec, m) fm.ServeDNS(ctx, rec, m)
} }
func BenchmarkLookup(b *testing.B) { func BenchmarkFileLookup(b *testing.B) {
zone, err := Parse(strings.NewReader(dbMiekNL), testzone, "stdin", 0) zone, err := Parse(strings.NewReader(dbMiekNL), testzone, "stdin", 0)
if err != nil { if err != nil {
return return

View file

@ -100,7 +100,7 @@ func TestLookupDnsWithForcedTcp(t *testing.T) {
} }
} }
func BenchmarkLookupProxy(b *testing.B) { func BenchmarkProxyLookup(b *testing.B) {
t := new(testing.T) t := new(testing.T)
name, rm, err := test.TempFile(".", exampleOrg) name, rm, err := test.TempFile(".", exampleOrg)
if err != nil { if err != nil {