summaryrefslogtreecommitdiff
path: root/lib/lib_test.go
blob: f851994c43b926b01bbe980f0ee385927c2fea52 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)
	}
}