(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestRunLabel(t *testing.T) { |
| 58 | fakeCLI := test.NewFakeCli(&fakeClient{ |
| 59 | createContainerFunc: func(options client.ContainerCreateOptions) (client.ContainerCreateResult, error) { |
| 60 | return client.ContainerCreateResult{ID: "id"}, nil |
| 61 | }, |
| 62 | Version: client.MaxAPIVersion, |
| 63 | }) |
| 64 | cmd := newRunCommand(fakeCLI) |
| 65 | cmd.SetArgs([]string{"--detach=true", "--label", "foo", "busybox"}) |
| 66 | assert.NilError(t, cmd.Execute()) |
| 67 | } |
| 68 | |
| 69 | func TestRunAttach(t *testing.T) { |
| 70 | p, tty, err := pty.Open() |
nothing calls this directly
no test coverage detected
searching dependent graphs…