Skip to content

Commit

Permalink
consolidate more error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew LeFevre committed Dec 15, 2021
1 parent aed6930 commit 87f8efe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/net/netip/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,10 @@ func FuzzParse(f *testing.F) {

// Check that .Next().Prev() and .Prev().Next() preserve the IP.
if ip.IsValid() && ip.Next().IsValid() && ip.Next().Prev() != ip {
t.Logf("ip=%q .next=%q .next.prev=%q", ip, ip.Next(), ip.Next().Prev())
t.Error(".Next.Prev did not round trip")
t.Errorf(".Next.Prev did not round trip: ip=%q .next=%q .next.prev=%q", ip, ip.Next(), ip.Next().Prev())
}
if ip.IsValid() && ip.Prev().IsValid() && ip.Prev().Next() != ip {
t.Logf("ip=%q .prev=%q .prev.next=%q", ip, ip.Prev(), ip.Prev().Next())
t.Error(".Prev.Next did not round trip")
t.Errorf(".Prev.Next did not round trip: ip=%q .prev=%q .prev.next=%q", ip, ip.Prev(), ip.Prev().Next())
}

port, err := ParseAddrPort(s)
Expand Down

0 comments on commit 87f8efe

Please sign in to comment.