@marcel91200 / caddy Mirror · read-only / commits / c024ae09
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

tests: Clean up redundant type declarations

Matthew Holt committed Apr 10, 2020 at 08:48 UTC c024ae096dc44aaaf9c588e329f28d07f4ea94fa
1 file changed +11 -11
caddyconfig/httpcaddyfile/directives_test.go
+11 -11
@@ -14,62 +14,62 @@ func TestHostsFromKeys(t *testing.T) {
14 }{
15 {
16 []Address{
17 - Address{Original: "foo", Host: "foo"},
17 + {Original: "foo", Host: "foo"},
18 },
19 []string{"foo"},
20 []string{"foo"},
21 },
22 {
23 []Address{
24 - Address{Original: "foo", Host: "foo"},
25 - Address{Original: "bar", Host: "bar"},
24 + {Original: "foo", Host: "foo"},
25 + {Original: "bar", Host: "bar"},
26 },
27 []string{"bar", "foo"},
28 []string{"bar", "foo"},
29 },
30 {
31 []Address{
32 - Address{Original: ":2015", Port: "2015"},
32 + {Original: ":2015", Port: "2015"},
33 },
34 []string{}, []string{},
35 },
36 {
37 []Address{
38 - Address{Original: ":443", Port: "443"},
38 + {Original: ":443", Port: "443"},
39 },
40 []string{}, []string{},
41 },
42 {
43 []Address{
44 - Address{Original: "foo", Host: "foo"},
45 - Address{Original: ":2015", Port: "2015"},
44 + {Original: "foo", Host: "foo"},
45 + {Original: ":2015", Port: "2015"},
46 },
47 []string{}, []string{"foo"},
48 },
49 {
50 []Address{
51 - Address{Original: "example.com:2015", Host: "example.com", Port: "2015"},
51 + {Original: "example.com:2015", Host: "example.com", Port: "2015"},
52 },
53 []string{"example.com"},
54 []string{"example.com:2015"},
55 },
56 {
57 []Address{
58 - Address{Original: "example.com:80", Host: "example.com", Port: "80"},
58 + {Original: "example.com:80", Host: "example.com", Port: "80"},
59 },
60 []string{"example.com"},
61 []string{"example.com"},
62 },
63 {
64 []Address{
65 - Address{Original: "https://:2015/foo", Scheme: "https", Port: "2015", Path: "/foo"},
65 + {Original: "https://:2015/foo", Scheme: "https", Port: "2015", Path: "/foo"},
66 },
67 []string{},
68 []string{},
69 },
70 {
71 []Address{
72 - Address{Original: "https://example.com:2015/foo", Scheme: "https", Host: "example.com", Port: "2015", Path: "/foo"},
72 + {Original: "https://example.com:2015/foo", Scheme: "https", Host: "example.com", Port: "2015", Path: "/foo"},
73 },
74 []string{"example.com"},
75 []string{"example.com:2015"},