From 5800f396ed44721775d6ab3e019709734b7a92b8 Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Wed, 15 Jan 2020 11:40:17 -0500 Subject: [PATCH] Add tests for networks which cannot be found --- traverse_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/traverse_test.go b/traverse_test.go index 288586f..7ba1af1 100644 --- a/traverse_test.go +++ b/traverse_test.go @@ -82,6 +82,11 @@ var tests = []networkTest{ "1.1.1.1/32", }, }, + networkTest{ + Network: "255.255.255.0/24", + Database: "ipv4", + Expected: []string(nil), + }, networkTest{ Network: "1.1.1.1/32", Database: "mixed", @@ -89,6 +94,11 @@ var tests = []networkTest{ "1.1.1.1/32", }, }, + networkTest{ + Network: "255.255.255.0/24", + Database: "mixed", + Expected: []string(nil), + }, networkTest{ Network: "::1:ffff:ffff/128", Database: "ipv6", @@ -116,6 +126,11 @@ var tests = []networkTest{ "::2:0:58/127", }, }, + networkTest{ + Network: "0:0:0:0:0:ffff:ffff:ff00/120", + Database: "ipv6", + Expected: []string(nil), + }, networkTest{ Network: "0.0.0.0/0", Database: "mixed",