MCPcopy Create free account
hub / github.com/docker/cli / TestConvertDNSConfigNameservers

Function TestConvertDNSConfigNameservers

cli/compose/convert/service_test.go:334–340  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

332}
333
334func TestConvertDNSConfigNameservers(t *testing.T) {
335 dnsConfig := convertDNSConfig(nameservers, nil)
336 assert.Check(t, is.DeepEqual(&swarm.DNSConfig{
337 Nameservers: toNetipAddrSlice(nameservers),
338 Search: nil,
339 }, dnsConfig, cmpopts.EquateComparable(netip.Addr{})))
340}
341
342func TestConvertDNSConfigSearch(t *testing.T) {
343 dnsConfig := convertDNSConfig(nil, search)

Callers

nothing calls this directly

Calls 2

convertDNSConfigFunction · 0.85
toNetipAddrSliceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…