summaryrefslogtreecommitdiff
path: root/lib/lib_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib_test.go')
-rw-r--r--lib/lib_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/lib_test.go b/lib/lib_test.go
new file mode 100644
index 00000000..f851994c
--- /dev/null
+++ b/lib/lib_test.go
@@ -0,0 +1,12 @@
+package lib
+
+import "testing"
+
+func TestIgnoreIPHelpers(t *testing.T) {
+ if got := IgnoreIPv4(); got != IPv4 {
+ t.Fatalf("IgnoreIPv4() = %s, want %s", got, IPv4)
+ }
+ if got := IgnoreIPv6(); got != IPv6 {
+ t.Fatalf("IgnoreIPv6() = %s, want %s", got, IPv6)
+ }
+}