aboutsummaryrefslogtreecommitdiff
path: root/plugin/plugin_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/plugin_test.go')
-rw-r--r--plugin/plugin_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/plugin/plugin_test.go b/plugin/plugin_test.go
deleted file mode 100644
index 80c253843..000000000
--- a/plugin/plugin_test.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package plugin
-
-import "testing"
-
-func TestFallthrough(t *testing.T) {
- if Fallthrough(nil, "foo.com.") {
- t.Errorf("Expected false, got true for nil fallthrough")
- }
-
- if !Fallthrough(&[]string{}, "foo.net.") {
- t.Errorf("Expected true, got false for all zone fallthrough")
- }
-
- if Fallthrough(&[]string{"foo.com", "bar.com"}, "foo.net") {
- t.Errorf("Expected false, got true for non-matching fallthrough zone")
- }
-
- if !Fallthrough(&[]string{"foo.com.", "bar.com."}, "bar.com.") {
- t.Errorf("Expected true, got false for matching fallthrough zone")
- }
-}