FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #1275 from mholt/fup-1273 · domdoescode/caddy@e291778 · GitHub

Repository navigation

Commit e291778

Browse files
authored
Merge pull request caddyserver#1275 from mholt/fup-1273
Increase code coverage (caddy.go)
2 parents d0bf3e1 + fec840a commit e291778

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎caddy_test.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ func TestListenerAddrEqual(t *testing.T) {
8585
}{
8686
{ln1, ":1234", false},
8787
{ln1, "0.0.0.0:1234", false},
88+
{ln1, "0.0.0.0", false},
8889
{ln1, ":" + ln1port + "", true},
8990
{ln1, "0.0.0.0:" + ln1port + "", true},
90-
{ln2, "127.0.0.1:1234", false},
9191
{ln2, ":" + ln2port + "", false},
92+
{ln2, "127.0.0.1:1234", false},
93+
{ln2, "127.0.0.1", false},
9294
{ln2, "127.0.0.1:" + ln2port + "", true},
9395
} {
9496
if got, want := listenerAddrEqual(test.ln, test.addr), test.expect; got != want {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL