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

@@ -22,7 +22,7 @@ func TestFileInput(t *testing.T) {
configuration.Paths = []string{path.Join("testdata", "file1.txt"), path.Join("testdata", "file2.txt")}
done := make(chan bool)
expected := []pb.RawFlow{
expected := []*pb.RawFlow{
{
Payload: []byte("hello world!\n"),
SourceAddress: net.ParseIP("127.0.0.1").To16(),