From fec840a8617e7f3730d7e98954713c5259e2151f Mon Sep 17 00:00:00 2001 From: Eldin Hadzic Date: Sun, 27 Nov 2016 08:55:17 +0000 Subject: [PATCH] Increase code coverage --- caddy_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/caddy_test.go b/caddy_test.go index bbb93090f..8bcd40f31 100644 --- a/caddy_test.go +++ b/caddy_test.go @@ -85,10 +85,12 @@ func TestListenerAddrEqual(t *testing.T) { }{ {ln1, ":1234", false}, {ln1, "0.0.0.0:1234", false}, + {ln1, "0.0.0.0", false}, {ln1, ":" + ln1port + "", true}, {ln1, "0.0.0.0:" + ln1port + "", true}, - {ln2, "127.0.0.1:1234", false}, {ln2, ":" + ln2port + "", false}, + {ln2, "127.0.0.1:1234", false}, + {ln2, "127.0.0.1", false}, {ln2, "127.0.0.1:" + ln2port + "", true}, } { if got, want := listenerAddrEqual(test.ln, test.addr), test.expect; got != want {