MCPcopy
hub / github.com/caddyserver/caddy / TestDuplicateHosts

Function TestDuplicateHosts

caddytest/integration/caddyfile_test.go:61–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func 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
75func TestReadCookie(t *testing.T) {
76 localhost, _ := url.Parse("http://localhost")

Callers

nothing calls this directly

Calls 1

AssertLoadErrorFunction · 0.92

Tested by

no test coverage detected