test: use google cmp library to do the deep reflect

The cmp library has two advantages:

- it shows diffs between compared values
- it allows ignoring fields based on field name or type
This commit is contained in:
Ondřej Budai 2019-11-28 10:52:43 +01:00 committed by Tom Gundersen
parent 268befa435
commit 613b659b95
4 changed files with 8 additions and 2 deletions

1
go.mod
View file

@ -7,6 +7,7 @@ require (
github.com/aws/aws-sdk-go v1.25.37
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f
github.com/gobwas/glob v0.2.3
github.com/google/go-cmp v0.3.1
github.com/google/uuid v1.1.1
github.com/julienschmidt/httprouter v1.2.0
)