1
0
mirror of https://github.com/golang/go synced 2024-11-12 02:10:21 -07:00

consolidate more error logs

This commit is contained in:
Andrew LeFevre 2021-12-14 21:29:36 -05:00
parent aed6930d78
commit 87f8efef89

View File

@ -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)