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:
parent
e039bbc322
commit
50ab28aa23
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue