1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/vendor/github.com
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
..
agl/ed25519
armon rerun vndr 2017-03-08 02:29:34 +00:00
aws/aws-sdk-go rerun vndr 2017-03-08 02:29:34 +00:00
Azure/go-ansiterm rerun vndr 2017-03-08 02:29:34 +00:00
beorn7/perks rerun vndr 2017-03-08 02:29:34 +00:00
boltdb/bolt rerun vndr 2017-03-08 02:29:34 +00:00
bsphere/le_go rerun vndr 2017-03-08 02:29:34 +00:00
BurntSushi/toml rerun vndr 2017-03-08 02:29:34 +00:00
cloudflare/cfssl rerun vndr 2017-03-08 02:29:34 +00:00
coreos rerun vndr 2017-03-08 02:29:34 +00:00
davecgh/go-spew Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
deckarep/golang-set rerun vndr 2017-03-08 02:29:34 +00:00
docker Re-vendor swarmkit to a version which does not require all cluster updates 2017-04-12 16:55:47 -07:00
fluent/fluent-logger-golang rerun vndr 2017-03-08 02:29:34 +00:00
flynn-archive/go-shlex rerun vndr 2017-03-08 02:29:34 +00:00
fsnotify/fsnotify rerun vndr 2017-03-08 02:29:34 +00:00
go-check/check rerun vndr 2017-03-08 02:29:34 +00:00
go-ini/ini rerun vndr 2017-03-08 02:29:34 +00:00
godbus/dbus rerun vndr 2017-03-08 02:29:34 +00:00
gogo/protobuf Implement plugins for logging drivers 2017-04-10 13:17:20 -04:00
golang/protobuf Vendor swarmkit d5232280 2017-04-07 17:10:16 -07:00
google/certificate-transparency rerun vndr 2017-03-08 02:29:34 +00:00
googleapis/gax-go rerun vndr 2017-03-08 02:29:34 +00:00
gorilla rerun vndr 2017-03-08 02:29:34 +00:00
Graylog2/go-gelf rerun vndr 2017-03-08 02:29:34 +00:00
grpc-ecosystem/go-grpc-prometheus rerun vndr 2017-03-08 02:29:34 +00:00
hashicorp rerun vndr 2017-03-08 02:29:34 +00:00
imdario/mergo rerun vndr 2017-03-08 02:29:34 +00:00
inconshreveable/mousetrap rerun vndr 2017-03-08 02:29:34 +00:00
jmespath/go-jmespath rerun vndr 2017-03-08 02:29:34 +00:00
kr/pty rerun vndr 2017-03-08 02:29:34 +00:00
mattn/go-shellwords Vendor package update github.com/mattn/go-shellwords 2017-04-11 18:14:00 +05:30
matttproud/golang_protobuf_extensions rerun vndr 2017-03-08 02:29:34 +00:00
Microsoft Revendor HCSShim @ v0.5.13 2017-03-23 11:47:05 -07:00
miekg rerun vndr 2017-03-08 02:29:34 +00:00
mistifyio/go-zfs rerun vndr 2017-03-08 02:29:34 +00:00
mitchellh/mapstructure rerun vndr 2017-03-08 02:29:34 +00:00
Nvveen/Gotty Revendor github.com/Nvveen/Gotty for github.com/Nvveen/Gotty#2 2017-04-06 12:19:32 +01:00
opencontainers Update runc to 54296cf40ad8143b62dbcaa1d90e520a2136ddfe 2017-03-08 14:56:29 -08:00
pborman/uuid rerun vndr 2017-03-08 02:29:34 +00:00
philhofer/fwd rerun vndr 2017-03-08 02:29:34 +00:00
pivotal-golang/clock rerun vndr 2017-03-08 02:29:34 +00:00
pkg/errors rerun vndr 2017-03-08 02:29:34 +00:00
pmezard/go-difflib
prometheus rerun vndr 2017-03-08 02:29:34 +00:00
RackSec/srslog rerun vndr 2017-03-08 02:29:34 +00:00
samuel/go-zookeeper rerun vndr 2017-03-08 02:29:34 +00:00
seccomp/libseccomp-golang Bump the version of go-connections 2017-03-09 11:19:14 -08:00
Sirupsen/logrus rerun vndr 2017-03-08 02:29:34 +00:00
spf13 rerun vndr 2017-03-08 02:29:34 +00:00
stretchr/testify Remove pkg/testutil/assert in favor of testify 2017-04-14 12:03:21 -07:00
syndtr/gocapability
tchap/go-patricia rerun vndr 2017-03-08 02:29:34 +00:00
tinylib/msgp rerun vndr 2017-03-08 02:29:34 +00:00
tonistiigi/fifo rerun vndr 2017-03-08 02:29:34 +00:00
ugorji/go rerun vndr 2017-03-08 02:29:34 +00:00
vbatts/tar-split rerun vndr 2017-03-08 02:29:34 +00:00
vdemeester/shakers rerun vndr 2017-03-08 02:29:34 +00:00
vishvananda Vendoring Netlink library 2017-04-10 17:09:24 -07:00
xeipuuv rerun vndr 2017-03-08 02:29:34 +00:00