mirror of https://github.com/docker/cli.git
1d4a7ae082
There's no need for `case=[xxx]` in table tests, Go does a good job of formatting the test output and we're just adding the same information for every test output line. Previously: ```console $ go test -count=1 -v -run=TestPromptForConfirmation ./cli/command === RUN TestPromptForConfirmation === RUN TestPromptForConfirmation/case=SIGINT === RUN TestPromptForConfirmation/case=no === RUN TestPromptForConfirmation/case=yes === RUN TestPromptForConfirmation/case=any === RUN TestPromptForConfirmation/case=with_space === RUN TestPromptForConfirmation/case=reader_closed --- PASS: TestPromptForConfirmation (0.00s) --- PASS: TestPromptForConfirmation/case=SIGINT (0.00s) --- PASS: TestPromptForConfirmation/case=no (0.00s) --- PASS: TestPromptForConfirmation/case=yes (0.00s) --- PASS: TestPromptForConfirmation/case=any (0.00s) --- PASS: TestPromptForConfirmation/case=with_space (0.00s) --- PASS: TestPromptForConfirmation/case=reader_closed (0.00s) PASS ok github.com/docker/cli/cli/command 0.013s ``` After: ```console go test -count=1 -v -run=TestPromptForConfirmation ./cli/command === RUN TestPromptForConfirmation === RUN TestPromptForConfirmation/SIGINT === RUN TestPromptForConfirmation/no === RUN TestPromptForConfirmation/yes === RUN TestPromptForConfirmation/any === RUN TestPromptForConfirmation/with_space === RUN TestPromptForConfirmation/reader_closed --- PASS: TestPromptForConfirmation (0.00s) --- PASS: TestPromptForConfirmation/SIGINT (0.00s) --- PASS: TestPromptForConfirmation/no (0.00s) --- PASS: TestPromptForConfirmation/yes (0.00s) --- PASS: TestPromptForConfirmation/any (0.00s) --- PASS: TestPromptForConfirmation/with_space (0.00s) --- PASS: TestPromptForConfirmation/reader_closed (0.00s) PASS ok github.com/docker/cli/cli/command 0.009s ``` Signed-off-by: Laura Brehm <laurabrehm@hey.com> |
||
---|---|---|
.. | ||
builder | ||
checkpoint | ||
commands | ||
completion | ||
config | ||
container | ||
context | ||
formatter | ||
idresolver | ||
image | ||
inspect | ||
manifest | ||
network | ||
node | ||
plugin | ||
registry | ||
secret | ||
service | ||
stack | ||
swarm | ||
system | ||
task | ||
testdata | ||
trust | ||
volume | ||
cli.go | ||
cli_options.go | ||
cli_options_test.go | ||
cli_test.go | ||
context.go | ||
context_test.go | ||
defaultcontextstore.go | ||
defaultcontextstore_test.go | ||
registry.go | ||
registry_test.go | ||
telemetry.go | ||
telemetry_docker.go | ||
telemetry_docker_test.go | ||
telemetry_options.go | ||
telemetry_utils.go | ||
telemetry_utils_test.go | ||
trust.go | ||
utils.go | ||
utils_test.go |