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

Function TestConvertExtraHosts

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

Source from the content-addressed store, hash-verified

89}
90
91func TestConvertExtraHosts(t *testing.T) {
92 source := composetypes.HostsList{
93 "zulu:127.0.0.2",
94 "alpha:127.0.0.1",
95 "zulu:ff02::1",
96 }
97 assert.Check(t, is.DeepEqual([]string{"127.0.0.2 zulu", "127.0.0.1 alpha", "ff02::1 zulu"}, convertExtraHosts(source)))
98}
99
100func TestConvertResourcesFull(t *testing.T) {
101 source := composetypes.Resources{

Callers

nothing calls this directly

Calls 1

convertExtraHostsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…