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

View file

@ -27,6 +27,7 @@ BuildRequires: golang(github.com/coreos/go-systemd/activation)
BuildRequires: golang(github.com/google/uuid)
BuildRequires: golang(github.com/julienschmidt/httprouter)
BuildRequires: golang(github.com/gobwas/glob)
BuildRequires: golang(github.com/google/go-cmp/cmp)
Requires: systemd
Requires: osbuild