1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Unit tests for cli/commands/image (except build and tag)

Signed-off-by: Ignacio Capurro <icapurrofagian@gmail.com>
This commit is contained in:
Ignacio Capurro 2017-03-30 21:21:14 -03:00
parent 0e9148b1e9
commit b2551c619d
58 changed files with 1446 additions and 124 deletions

View file

@ -39,7 +39,9 @@ type Cli interface {
Out() *OutStream
Err() io.Writer
In() *InStream
SetIn(in *InStream)
ConfigFile() *configfile.ConfigFile
CredentialsStore(serverAddress string) credentials.Store
}
// DockerCli is an instance the docker command line client.
@ -75,6 +77,11 @@ func (cli *DockerCli) Err() io.Writer {
return cli.err
}
// SetIn sets the reader used for stdin
func (cli *DockerCli) SetIn(in *InStream) {
cli.in = in
}
// In returns the reader used for stdin
func (cli *DockerCli) In() *InStream {
return cli.in