diff options
author | 2016-04-02 16:56:16 +0100 | |
---|---|---|
committer | 2016-04-02 16:56:16 +0100 | |
commit | 9b21646954c8fea174be8b769f16ddb213286753 (patch) | |
tree | 026a7d0419640906905429459d663af4064467ad /middleware/file/file_test.go | |
parent | d8ab95cd18144e8701b4bb9d5f2d96fc74ab1149 (diff) | |
download | coredns-9b21646954c8fea174be8b769f16ddb213286753.tar.gz coredns-9b21646954c8fea174be8b769f16ddb213286753.tar.zst coredns-9b21646954c8fea174be8b769f16ddb213286753.zip |
empty non-terminal support
When looking for a name in tree, return wether we got to a longer one -
if so we had an ent. Add tests + dnssec tests and refactor the tests as
well a bit.
Diffstat (limited to 'middleware/file/file_test.go')
-rw-r--r-- | middleware/file/file_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/middleware/file/file_test.go b/middleware/file/file_test.go index 00f667d57..87314db43 100644 --- a/middleware/file/file_test.go +++ b/middleware/file/file_test.go @@ -1,5 +1,16 @@ package file +import ( + "strings" + "testing" +) + +func BenchmarkParseInsert(b *testing.B) { + for i := 0; i < b.N; i++ { + Parse(strings.NewReader(dbMiekENTNL), testzone, "stdin") + } +} + /* var testDir = filepath.Join(os.TempDir(), "caddy_testdir") var ErrCustom = errors.New("Custom Error") |