(t *testing.T, dir string, contents string)
| 383 | } |
| 384 | |
| 385 | func writeResovConf(t *testing.T, dir string, contents string) string { |
| 386 | p := path.Join(dir, "resolv.conf") |
| 387 | require.NoError(t, os.WriteFile(p, []byte(contents), 0666)) |
| 388 | return p |
| 389 | } |
| 390 | |
| 391 | func getClientConfig(t *testing.T) *dns.ClientConfig { |
| 392 | conf, err := dns.ClientConfigFromFile(DefaultResolvConfPath) |
no outgoing calls
no test coverage detected