From 17b3b98796102d806f1d6fc3605b97741903ca1c Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Thu, 20 Nov 2025 16:25:40 -0500 Subject: [PATCH] internal/strconv: go fmt Change-Id: I6a6a636ccd140dc5318f45bb2dc7236a5a43b1cf Reviewed-on: https://go-review.googlesource.com/c/go/+/722523 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Knyszek Auto-Submit: Michael Pratt --- src/internal/strconv/atoc_test.go | 4 ++-- src/internal/strconv/atof_test.go | 2 +- src/internal/strconv/atoi_test.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/internal/strconv/atoc_test.go b/src/internal/strconv/atoc_test.go index 0a7741a4cc..f1bde2939a 100644 --- a/src/internal/strconv/atoc_test.go +++ b/src/internal/strconv/atoc_test.go @@ -5,9 +5,9 @@ package strconv_test import ( + . "internal/strconv" "math" "math/cmplx" - . "internal/strconv" "testing" ) @@ -194,7 +194,7 @@ func TestParseComplex(t *testing.T) { if complex128(complex64(test.out)) == test.out { c, e := ParseComplex(test.in, 64) c64 := complex64(c) - if !sameComplex(complex128(c64) , test.out) || e != test.err { + if !sameComplex(complex128(c64), test.out) || e != test.err { t.Errorf("ParseComplex(%s, 64) = %v, %v, want %v, %v", test.in, c, e, test.out, test.err) } } diff --git a/src/internal/strconv/atof_test.go b/src/internal/strconv/atof_test.go index dd0b4dd6ef..eeb4656efb 100644 --- a/src/internal/strconv/atof_test.go +++ b/src/internal/strconv/atof_test.go @@ -5,10 +5,10 @@ package strconv_test import ( + . "internal/strconv" "math" "math/rand" "reflect" - . "internal/strconv" "strings" "sync" "testing" diff --git a/src/internal/strconv/atoi_test.go b/src/internal/strconv/atoi_test.go index e8f123ea5e..c9c9a4e4e9 100644 --- a/src/internal/strconv/atoi_test.go +++ b/src/internal/strconv/atoi_test.go @@ -6,8 +6,8 @@ package strconv_test import ( "fmt" - "reflect" . "internal/strconv" + "reflect" "testing" ) @@ -433,7 +433,7 @@ func TestAtoi(t *testing.T) { for i := range parseInt32Tests { test := &parseInt32Tests[i] out, err := Atoi(test.in) - if out !=int(test.out) || err != test.err { + if out != int(test.out) || err != test.err { t.Errorf("Atoi(%q) = %v, %v, want %v, %v", test.in, out, err, test.out, test.err) } } @@ -449,7 +449,7 @@ func TestAtoi(t *testing.T) { } type parseErrorTest struct { - arg int + arg int err error } -- 2.52.0