aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-01-07 10:55:35 -0800
committerIan Lance Taylor <iant@golang.org>2020-02-22 04:32:05 +0000
commit7ee3b63c8bab7d1e6d3b8df21a465aecd2e08447 (patch)
tree4785119ebd023236c6678004b95cd65cf941f7fd /src
parent059a5ac3ebfafe5977b1e6176433c111ef8950f3 (diff)
downloadgo-7ee3b63c8bab7d1e6d3b8df21a465aecd2e08447.tar.xz
runtime: mark testCallersEqual as a test helper
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>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/callers_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/callers_test.go b/src/runtime/callers_test.go
index 302e33deeb..3cf3fbe5ac 100644
--- a/src/runtime/callers_test.go
+++ b/src/runtime/callers_test.go
@@ -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)