FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
caddy/caddyhttp/httpserver/server_test.go at master · digideskio/caddy · GitHub
digideskio
/
caddy
Public
forked from
caddyserver/caddy
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
caddy
/
caddyhttp
/
httpserver
/
server_test.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (12 loc) · 274 Bytes
Breadcrumbs
caddy
/
caddyhttp
/
httpserver
/
server_test.go
Copy path
File metadata and controls
15 lines (12 loc) · 274 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package
httpserver
import
(
"net/http"
"testing"
)
func
TestAddress
(
t
*
testing.
T
) {
addr
:=
"127.0.0.1:9005"
srv
:=
&
Server
{
Server
:
&
http.
Server
{
Addr
:
addr
}}
if
got
,
want
:=
srv
.
Address
(),
addr
;
got
!=
want
{
t
.
Errorf
(
"Expected '%s' but got '%s'"
,
want
,
got
)
}
}
Back
|
FazBrowse Home
|
New Git URL