]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: mark testCallersEqual as a test helper
authorIan Lance Taylor <iant@golang.org>
Tue, 7 Jan 2020 18:55:35 +0000 (10:55 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 22 Feb 2020 04:32:05 +0000 (04:32 +0000)
Change-Id: I25e6fb733618b0a7af8adc69be85f3503810acf4
Reviewed-on: https://go-review.googlesource.com/c/go/+/213658
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/runtime/callers_test.go

index 302e33deeb81f2678f166233852bbbac516be66b..3cf3fbe5acf6f422c2701c727d79a8700636c996 100644 (file)
@@ -68,6 +68,8 @@ func testCallers(t *testing.T, pcs []uintptr, pan bool) {
 }
 
 func testCallersEqual(t *testing.T, pcs []uintptr, want []string) {
+       t.Helper()
+
        got := make([]string, 0, len(want))
 
        frames := runtime.CallersFrames(pcs)