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

Function TestHealthCheckOptionsToHealthConfigConflict

cli/command/service/opts_test.go:141–148  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

139}
140
141func TestHealthCheckOptionsToHealthConfigConflict(t *testing.T) {
142 opt := healthCheckOptions{
143 cmd: "curl",
144 noHealthcheck: true,
145 }
146 _, err := opt.toHealthConfig()
147 assert.Error(t, err, "--no-healthcheck conflicts with --health-* options")
148}
149
150func TestResourceOptionsToResourceRequirements(t *testing.T) {
151 incorrectOptions := []resourceOptions{

Callers

nothing calls this directly

Calls 2

toHealthConfigMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…