Lines Matching refs:string
14 in string
15 out []string
19 name string
25 {"odin", []string{"127.0.0.2", "127.0.0.3", "::2"}},
26 {"thor", []string{"127.1.1.1"}},
27 {"ullr", []string{"127.1.1.2"}},
28 {"ullrhost", []string{"127.1.1.2"}},
29 {"localhost", []string{"fe80::1%lo0"}},
35 {"odin", []string{"127.0.0.2"}},
41 {"localhost", []string{"127.0.0.1", "127.0.0.2", "127.0.0.3"}},
42 {"localhost.localdomain", []string{"127.0.0.3"}},
48 {"localhost", []string{"::1", "fe80::1", "fe80::2%lo0", "fe80::3%lo0"}},
49 {"localhost.localdomain", []string{"fe80::3%lo0"}},
55 {"PreserveMe", []string{"127.0.0.1", "::1"}},
56 {"PreserveMe.local", []string{"127.0.0.1", "::1"}},
62 defer func(orig string) { testHookHostsPath = orig }(testHookHostsPath)
72 func testStaticHost(t *testing.T, hostsPath string, ent staticHostEntry) {
73 ins := []string{ent.in, absDomainName([]byte(ent.in)), strings.ToLower(ent.in), strings.ToUpper(ent.in)}
83 name string
89 {"255.255.255.255", []string{"broadcasthost"}},
90 {"127.0.0.2", []string{"odin"}},
91 {"127.0.0.3", []string{"odin"}},
92 {"::2", []string{"odin"}},
93 {"127.1.1.1", []string{"thor"}},
94 {"127.1.1.2", []string{"ullr", "ullrhost"}},
95 {"fe80::1%lo0", []string{"localhost"}},
101 {"127.0.0.2", []string{"odin"}},
107 {"127.0.0.1", []string{"localhost"}},
108 {"127.0.0.2", []string{"localhost"}},
109 {"127.0.0.3", []string{"localhost", "localhost.localdomain"}},
115 {"::1", []string{"localhost"}},
116 {"fe80::1", []string{"localhost"}},
117 {"fe80::2%lo0", []string{"localhost"}},
118 {"fe80::3%lo0", []string{"localhost", "localhost.localdomain"}},
124 {"127.0.0.1", []string{"PreserveMe", "PreserveMe.local"}},
125 {"::1", []string{"PreserveMe", "PreserveMe.local"}},
131 defer func(orig string) { testHookHostsPath = orig }(testHookHostsPath)
141 func testStaticAddr(t *testing.T, hostsPath string, ent staticHostEntry) {
154 defer func(orig string) { testHookHostsPath = orig }(testHookHostsPath)
157 ent := staticHostEntry{"localhost", []string{"127.0.0.1", "127.0.0.2", "127.0.0.3"}}
167 ent = staticHostEntry{"::1", []string{"localhost"}}