tests: replace godebug by go-cmp for structure diffs

go-cmp is stricter and allow to catch more problems. Moreover, the
output is a bit nicer.
This commit is contained in:
Vincent Bernat
2025-08-23 08:28:38 +02:00
parent 1a09ba9e7c
commit e2f1df9add
45 changed files with 852 additions and 710 deletions

View File

@@ -236,7 +236,7 @@ func TestParametrizedConfig(t *testing.T) {
Expected: OuterConfiguration{
AA: "a1",
BB: "b1",
Config: InnerConfigurationType1{
Config: &InnerConfigurationType1{
CC: "c1",
DD: "d1",
},
@@ -256,7 +256,7 @@ func TestParametrizedConfig(t *testing.T) {
Expected: OuterConfiguration{
AA: "a2",
BB: "b2",
Config: InnerConfigurationType2{
Config: &InnerConfigurationType2{
CC: "c2",
EE: "e2",
},