MCPcopy
hub / github.com/grafana/dskit / writeResovConf

Function writeResovConf

dns/miekgdns/resolver_test.go:385–389  ·  view source on GitHub ↗
(t *testing.T, dir string, contents string)

Source from the content-addressed store, hash-verified

383}
384
385func 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
391func getClientConfig(t *testing.T) *dns.ClientConfig {
392 conf, err := dns.ClientConfigFromFile(DefaultResolvConfPath)

Callers 3

TestResolver_LookupSRVFunction · 0.85
TestResolver_LookupIPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected