mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-30 23:53:48 +03:00
Increase code coverage
This commit is contained in:
parent
d0bf3e1647
commit
fec840a861
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue