(t *testing.T)
| 318 | } |
| 319 | |
| 320 | func TestJSONWithPsFormatNoFile(t *testing.T) { |
| 321 | js := `{ |
| 322 | "auths": { "https://index.docker.io/v1/": { "auth": "am9lam9lOmhlbGxv", "email": "user@example.com" } }, |
| 323 | "psFormat": "table {{.ID}}\\t{{.Label \"com.docker.label.cpu\"}}" |
| 324 | }` |
| 325 | config, err := LoadFromReader(strings.NewReader(js)) |
| 326 | assert.NilError(t, err) |
| 327 | |
| 328 | if config.PsFormat != `table {{.ID}}\t{{.Label "com.docker.label.cpu"}}` { |
| 329 | t.Fatalf("Unknown ps format: %s\n", config.PsFormat) |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | func TestJSONSaveWithNoFile(t *testing.T) { |
| 334 | js := `{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…