Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
caddy
Commits
e2917784
Commit
e2917784
authored
8 years ago
by
Matt Holt
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1275 from mholt/fup-1273
Increase code coverage (caddy.go)
parents
d0bf3e16
fec840a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
caddy_test.go
caddy_test.go
+3
-1
No files found.
caddy_test.go
View file @
e2917784
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment