@@ -189,20 +189,20 @@ func Test_Cmd_LogFile_Debug(t *testing.T) {
189
189
}
190
190
191
191
func TestEnsureDNSAddress (t * testing.T ) {
192
- testCases := []struct {
193
- input string
194
- expected string
195
- }{
196
- {"127.0.0.1" , "127.0.0.1:53" },
197
- {"2001:558:feed::1" , "[2001:558:feed::1]:53" },
198
- {"[2001:558:feed::1]:53" , "[2001:558:feed::1]:53" },
199
- {"example.com" , "example.com:53" },
200
- }
201
-
202
- for _ , tc := range testCases {
203
- t .Run (fmt .Sprintf ("input=%s" , tc .input ), func (t * testing.T ) {
204
- result := EnsureDNSAddress (tc .input )
205
- assert .Equal (t , tc .expected , result )
206
- })
207
- }
192
+ testCases := []struct {
193
+ input string
194
+ expected string
195
+ }{
196
+ {"127.0.0.1" , "127.0.0.1:53" },
197
+ {"2001:558:feed::1" , "[2001:558:feed::1]:53" },
198
+ {"[2001:558:feed::1]:53" , "[2001:558:feed::1]:53" },
199
+ {"example.com" , "example.com:53" },
200
+ }
201
+
202
+ for _ , tc := range testCases {
203
+ t .Run (fmt .Sprintf ("input=%s" , tc .input ), func (t * testing.T ) {
204
+ result := EnsureDNSAddress (tc .input )
205
+ assert .Equal (t , tc .expected , result )
206
+ })
207
+ }
208
208
}
0 commit comments