mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user