(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestDuplicateHosts(t *testing.T) { |
| 62 | // act and assert |
| 63 | caddytest.AssertLoadError(t, |
| 64 | ` |
| 65 | localhost:9080 { |
| 66 | } |
| 67 | |
| 68 | localhost:9080 { |
| 69 | } |
| 70 | `, |
| 71 | "caddyfile", |
| 72 | "ambiguous site definition") |
| 73 | } |
| 74 | |
| 75 | func TestReadCookie(t *testing.T) { |
| 76 | localhost, _ := url.Parse("http://localhost") |
nothing calls this directly
no test coverage detected