(t *testing.T)
| 157 | } |
| 158 | |
| 159 | func 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 | |
| 169 | func TestJSONFormatWithNoUpdateConfig(t *testing.T) { |
| 170 | now := time.Now() |
nothing calls this directly
no test coverage detected
searching dependent graphs…