switch tests to use cmp.Diff

This commit is contained in:
Joel Wetzell
2026-05-30 09:20:20 -05:00
parent d8da54172e
commit b7d8e8dddd
15 changed files with 73 additions and 61 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/jwetzell/artnet-go"
)
@@ -924,7 +925,7 @@ func TestGoodArtAddressUnmarshal(t *testing.T) {
t.Fatalf("failed to Unmarshal ArtAddress: %s", err)
}
diff := cmp.Diff(test.Expected, got)
diff := cmp.Diff(test.Expected, got, cmpopts.IgnoreUnexported(artnet.ArtAddress{}))
if diff != "" {
t.Fatalf("ArtAddress does not match\n%s", diff)
}