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>
This commit is contained in:
Ian Lance Taylor 2020-01-07 10:55:35 -08:00
parent 059a5ac3eb
commit 7ee3b63c8b
1 changed files with 2 additions and 0 deletions

View 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)