mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
testing: use runtime/debug to format panics
Among other things, this avoids putting a testing.go:nnn: prefix on every line of the stack trace. R=golang-dev, r, dsymonds, r CC=golang-dev https://golang.org/cl/5651081
This commit is contained in:
parent
6a75ece01c
commit
f735d2d9d3
2 changed files with 9 additions and 19 deletions
|
|
@ -2,9 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package debug
|
||||
package debug_test
|
||||
|
||||
import (
|
||||
. "runtime/debug"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue