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

Function TestConvertDNSConfigAll

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

Source from the content-addressed store, hash-verified

324)
325
326func TestConvertDNSConfigAll(t *testing.T) {
327 dnsConfig := convertDNSConfig(nameservers, search)
328 assert.Check(t, is.DeepEqual(&swarm.DNSConfig{
329 Nameservers: toNetipAddrSlice(nameservers),
330 Search: search,
331 }, dnsConfig, cmpopts.EquateComparable(netip.Addr{})))
332}
333
334func TestConvertDNSConfigNameservers(t *testing.T) {
335 dnsConfig := convertDNSConfig(nameservers, nil)

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…