moby/opts
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
..
env.go Clean some stuff from runconfig that are cli only… 2016-12-24 13:16:00 +01:00
env_test.go Clean some stuff from runconfig that are cli only… 2016-12-24 13:16:00 +01:00
hosts.go Merge pull request #29697 from yuexiao-wang/fix-docker-daemon 2017-01-04 11:55:38 +01:00
hosts_test.go Clean some stuff from runconfig that are cli only… 2016-12-24 13:16:00 +01:00
hosts_unix.go Finish linting opts and trust package. 2015-08-27 17:36:11 +02:00
hosts_windows.go Windows: Default to npipe transport 2016-03-01 18:27:01 -08:00
ip.go Convert dockerd to use cobra and pflag 2016-08-25 13:09:03 -04:00
ip_test.go golint: trust 2015-08-27 11:40:27 +02:00
mount.go Merge pull request #30597 from dnephin/add-expanded-mount-format-to-stack-deploy 2017-03-14 17:53:28 +00:00
mount_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
opts.go Make the CLI show defaults from the swarmkit defaults package 2017-04-10 13:41:18 -07:00
opts_test.go Make the CLI show defaults from the swarmkit defaults package 2017-04-10 13:41:18 -07:00
opts_unix.go Update docker daemon to dockerd 2016-12-27 17:32:15 +08:00
opts_windows.go Update docker daemon to dockerd 2016-12-27 17:32:15 +08:00
port.go Make sure we validate simple syntax on service commands 2017-02-07 12:45:47 +01:00
port_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
quotedstring.go Trim quotes from TLS flags. 2017-01-03 15:58:41 -05:00
quotedstring_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
runtime.go Clean some stuff from runconfig that are cli only… 2016-12-24 13:16:00 +01:00
secret.go api: Remove SecretRequestOption type 2017-03-16 11:20:31 -07:00
secret_test.go Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
throttledevice.go Improve usage output for docker run 2016-12-30 17:35:46 +01:00
ulimit.go Clean some stuff from runconfig that are cli only… 2016-12-24 13:16:00 +01:00
ulimit_test.go Clean some stuff from runconfig that are cli only… 2016-12-24 13:16:00 +01:00
weightdevice.go Improve usage output for docker run 2016-12-30 17:35:46 +01:00