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

Function TestConvertHealthcheckDisable

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

Source from the content-addressed store, hash-verified

177}
178
179func TestConvertHealthcheckDisable(t *testing.T) {
180 source := &composetypes.HealthCheckConfig{Disable: true}
181 expected := &container.HealthConfig{
182 Test: []string{"NONE"},
183 }
184
185 healthcheck, err := convertHealthcheck(source)
186 assert.NilError(t, err)
187 assert.Check(t, is.DeepEqual(expected, healthcheck))
188}
189
190func TestConvertHealthcheckDisableWithTest(t *testing.T) {
191 source := &composetypes.HealthCheckConfig{

Callers

nothing calls this directly

Calls 1

convertHealthcheckFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…