mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
17b3b98796
commit
e7787b9eca
6 changed files with 22 additions and 21 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue