runtime: go fmt

Change-Id: I6a6a636cf38ddb1dc6f2170361eb4093b81acdfb
Reviewed-on: https://go-review.googlesource.com/c/go/+/722521
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Michael Pratt 2025-11-20 16:25:40 -05:00 committed by Gopher Robot
parent 17b3b98796
commit e7787b9eca
6 changed files with 22 additions and 21 deletions

View file

@ -592,6 +592,7 @@ func cgoCheckPointer(ptr any, arg any) {
} }
type cgoErrorMsg int type cgoErrorMsg int
const ( const (
cgoCheckPointerFail cgoErrorMsg = iota cgoCheckPointerFail cgoErrorMsg = iota
cgoResultFail cgoResultFail

View file

@ -1228,7 +1228,7 @@ func TestTraceSTW(t *testing.T) {
} }
} }
pct := float64(errors)/float64(runs) pct := float64(errors) / float64(runs)
t.Logf("Errors: %d/%d = %f%%", errors, runs, 100*pct) t.Logf("Errors: %d/%d = %f%%", errors, runs, 100*pct)
if pct > 0.25 { if pct > 0.25 {
t.Errorf("Error rate too high") t.Errorf("Error rate too high")
@ -1264,7 +1264,7 @@ func TestTraceGCSTW(t *testing.T) {
} }
} }
pct := float64(errors)/float64(runs) pct := float64(errors) / float64(runs)
t.Logf("Errors: %d/%d = %f%%", errors, runs, 100*pct) t.Logf("Errors: %d/%d = %f%%", errors, runs, 100*pct)
if pct > 0.25 { if pct > 0.25 {
t.Errorf("Error rate too high") t.Errorf("Error rate too high")