(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestVersion(t *testing.T) { |
| 96 | var b bytes.Buffer |
| 97 | err := runCliCommand(t, nil, &b, "--version") |
| 98 | assert.NilError(t, err) |
| 99 | assert.Check(t, is.Contains(b.String(), "Docker version")) |
| 100 | } |
| 101 | |
| 102 | func TestUserTerminatedError(t *testing.T) { |
| 103 | ctx, cancel := context.WithTimeoutCause(context.Background(), time.Second*1, errors.New("test timeout")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…