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

Function TestConvertHealthcheckDisableWithTest

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

Source from the content-addressed store, hash-verified

188}
189
190func TestConvertHealthcheckDisableWithTest(t *testing.T) {
191 source := &composetypes.HealthCheckConfig{
192 Disable: true,
193 Test: []string{"EXEC", "touch"},
194 }
195 _, err := convertHealthcheck(source)
196 assert.Error(t, err, "test and disable can't be set at the same time")
197}
198
199func TestConvertEndpointSpec(t *testing.T) {
200 source := []composetypes.ServicePortConfig{

Callers

nothing calls this directly

Calls 2

convertHealthcheckFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…