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

Function TestPrettyPrintWithConfigsAndSecrets

cli/command/service/inspect_test.go:190–196  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

188}
189
190func TestPrettyPrintWithConfigsAndSecrets(t *testing.T) {
191 s := formatServiceInspect(t, newFormat("pretty"), time.Now())
192 assert.Check(t, is.Contains(s, "Log Driver:"), "Pretty print missing Log Driver")
193 assert.Check(t, is.Contains(s, "Configs:"), "Pretty print missing configs")
194 assert.Check(t, is.Contains(s, "Secrets:"), "Pretty print missing secrets")
195 assert.Check(t, is.Contains(s, "Healthcheck:"), "Pretty print missing healthcheck")
196}

Callers

nothing calls this directly

Calls 3

formatServiceInspectFunction · 0.85
ContainsMethod · 0.80
newFormatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…