MCPcopy Index your code
hub / github.com/docker/cli / TestPrettyPrintWithNoUpdateConfig

Function TestPrettyPrintWithNoUpdateConfig

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

Source from the content-addressed store, hash-verified

157}
158
159func TestPrettyPrintWithNoUpdateConfig(t *testing.T) {
160 s := formatServiceInspect(t, newFormat("pretty"), time.Now())
161 if strings.Contains(s, "UpdateStatus") {
162 t.Fatal("Pretty print failed before parsing UpdateStatus")
163 }
164 if !strings.Contains(s, "mynetwork") {
165 t.Fatal("network name not found in inspect output")
166 }
167}
168
169func TestJSONFormatWithNoUpdateConfig(t *testing.T) {
170 now := time.Now()

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…