aboutsummaryrefslogtreecommitdiff
path: root/middleware/test/helpers_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-08-16 15:30:58 +0100
committerGravatar GitHub <noreply@github.com> 2017-08-16 15:30:58 +0100
commit7f46df6d274eff51569b57b382480301caa1dff6 (patch)
tree4a6062700acc0bd110ef622b64f055a235042294 /middleware/test/helpers_test.go
parent65b56248f0f4a43fe71435c4d801b94c3f168f65 (diff)
downloadcoredns-7f46df6d274eff51569b57b382480301caa1dff6.tar.gz
coredns-7f46df6d274eff51569b57b382480301caa1dff6.tar.zst
coredns-7f46df6d274eff51569b57b382480301caa1dff6.zip
tests: add SortAndCheck helper (#926)
There was quite some code duplication in a lot of tests to check if an answer was considered Ok. Created a test.SortAndCheck helper function that takes care of this.
Diffstat (limited to 'middleware/test/helpers_test.go')
-rw-r--r--middleware/test/helpers_test.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/middleware/test/helpers_test.go b/middleware/test/helpers_test.go
deleted file mode 100644
index 1b4d95bbc..000000000
--- a/middleware/test/helpers_test.go
+++ /dev/null
@@ -1,8 +0,0 @@
-package test
-
-import "testing"
-
-func TestA(t *testing.T) {
- // should not crash
- A("miek.nl. IN A 127.0.0.1")
-}