moby/cli/command/container
Aaron Lehmann 6052f2b396 Remove pkg/testutil/assert in favor of testify
I noticed that we're using a homegrown package for assertions. The
functions are extremely similar to testify, but with enough slight
differences to be confusing (for example, Equal takes its arguments in a
different order). We already vendor testify, and it's used in a few
places by tests.

I also found some problems with pkg/testutil/assert. For example, the
NotNil function seems to be broken. It checks the argument against
"nil", which only works for an interface. If you pass in a nil map or
slice, the equality check will fail.

In the interest of avoiding NIH, I'm proposing replacing
pkg/testutil/assert with testify. The test code looks almost the same,
but we avoid the confusion of having two similar but slightly different
assertion packages, and having to maintain our own package instead of
using a commonly-used one.

In the process, I found a few places where the tests should halt if an
assertion fails, so I've made those cases (that I noticed) use "require"
instead of "assert", and I've vendored the "require" package from
testify alongside the already-present "assert" package.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2017-04-14 12:03:21 -07:00
..
testdata Clean some stuff from runconfig that are cli only… 2016-12-24 13:16:00 +01:00
attach.go Clarify meaning of docker attach 2017-03-31 13:22:21 -07:00
cmd.go Minor cleanups in cli/command/container 2016-12-26 01:33:25 +01:00
commit.go Minor cleanups in cli/command/container 2016-12-26 01:33:25 +01:00
cp.go daemon/archive.go: Fix copy routines to preserve UID. 2017-04-12 10:33:19 +00:00
create.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
diff.go Use formatter in docker diff 2017-03-30 10:33:40 +03:00
exec.go why there are so many mistakes in our repo (up to /cmd) 2017-02-17 00:32:48 +08:00
exec_test.go Remove redundant parameter and fix typos 2016-11-10 11:05:31 +08:00
export.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
hijack.go Windows: Don't close client stdin handle to avoid hang 2017-03-21 16:00:17 -07:00
inspect.go Minor cleanups in cli/command/container 2016-12-26 01:33:25 +01:00
kill.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
list.go Fix failure in docker ps --format when .Label has args 2017-01-23 09:31:48 -08:00
logs.go Merge pull request #29688 from tronicum/since-flag 2017-01-09 09:27:30 -05:00
opts.go Added start period option to health check. 2017-04-06 12:35:34 +02:00
opts_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
pause.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
port.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
prune.go Add label filter for docker system prune 2017-04-06 09:11:25 -07:00
ps_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
rename.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
restart.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
rm.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
run.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
start.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
stats.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
stats_helpers.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
stats_unit_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
stop.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
top.go Minor cleanups in cli/command/container 2016-12-26 01:33:25 +01:00
tty.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
unpause.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00
update.go Add --cpus support for docker update 2017-04-06 15:40:12 -07:00
utils.go Minor cleanups in cli/command/container 2016-12-26 01:33:25 +01:00
wait.go Manually reorganize import paths to segregate stdlib and 3rd-party packages 2017-03-27 18:21:59 -07:00