aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/pprof
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2022-08-12 16:37:42 +0700
committerGopher Robot <gobot@golang.org>2022-08-12 15:45:17 +0000
commita2af095699f5ec330ff2f012ea3a16d74cc4c3f9 (patch)
tree6abeb17cd2b9717695353697040b7636e7e07865 /src/runtime/pprof
parentf67c76606991411cd0075c5715624a579de40d46 (diff)
downloadgo-a2af095699f5ec330ff2f012ea3a16d74cc4c3f9.tar.xz
runtime: run "gofmt -s -w"
Change-Id: I7eb3de35d1f1f0237962735450b37d738966f30c Reviewed-on: https://go-review.googlesource.com/c/go/+/423254 Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/pprof')
-rw-r--r--src/runtime/pprof/pprof_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go
index aabc180de3..28b8f4319e 100644
--- a/src/runtime/pprof/pprof_test.go
+++ b/src/runtime/pprof/pprof_test.go
@@ -1319,13 +1319,13 @@ func TestGoroutineCounts(t *testing.T) {
t.Errorf("protobuf profile is invalid: %v", err)
}
expectedLabels := map[int64]map[string]string{
- 50: map[string]string{},
- 44: map[string]string{"label": "value"},
- 40: map[string]string{},
- 36: map[string]string{"label": "value"},
- 10: map[string]string{},
- 9: map[string]string{"label": "value"},
- 1: map[string]string{},
+ 50: {},
+ 44: {"label": "value"},
+ 40: {},
+ 36: {"label": "value"},
+ 10: {},
+ 9: {"label": "value"},
+ 1: {},
}
if !containsCountsLabels(p, expectedLabels) {
t.Errorf("expected count profile to contain goroutines with counts and labels %v, got %v",