debian-forge-composer/internal/distro
Tom Gundersen 0f2b8e597e distro/test: use cmp.Diff rather than reflect.DeepEqual
This gives us more readable output. Both because it gives just a
diff, rather than the whole object as a string, but also as it
captures differences between the objects that thir string
representation does not.

In particular, if a field is an interface I, and T implements I,
then an object of type T and a pointer to the same object can both
be assigned to a variable of type I. Either way, the JSON
representation is the same, but the objects (correctly) do not
compare equal.

This is a pain to debug.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-03-15 19:38:59 +01:00
..
fedora30 distro: drop Pipeline and Sources from interface 2020-03-08 21:05:01 +01:00
fedora31 distro: drop Pipeline and Sources from interface 2020-03-08 21:05:01 +01:00
fedora32 distro: drop Pipeline and Sources from interface 2020-03-08 21:05:01 +01:00
fedoratest distro: drop Pipeline and Sources from interface 2020-03-08 21:05:01 +01:00
rhel81 distro: drop Pipeline and Sources from interface 2020-03-08 21:05:01 +01:00
rhel82 distro: drop Pipeline and Sources from interface 2020-03-08 21:05:01 +01:00
test distro: drop Pipeline and Sources from interface 2020-03-08 21:05:01 +01:00
distro.go distro: drop Pipeline and Sources from interface 2020-03-08 21:05:01 +01:00
distro_test.go distro/test: use cmp.Diff rather than reflect.DeepEqual 2020-03-15 19:38:59 +01:00
osrelease_test.go distro: add DetectHost 2019-11-10 17:23:14 +01:00