MCPcopy
hub / github.com/dropbox/godropbox / TestStackAddrs

Function TestStackAddrs

errors/errors_test.go:83–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

81}
82
83func TestStackAddrs(t *testing.T) {
84 pat := regexp.MustCompile("^0x[a-h0-9]+( 0x[a-h0-9]+)*$")
85 er := New("big trouble")
86 if !pat.MatchString(er.StackAddrs()) {
87 t.Errorf("StackAddrs didn't match `%s`: %q", pat, er.StackAddrs())
88 }
89}
90
91func makeTestErrorClassifier(
92 callCount *int,

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
StackAddrsMethod · 0.65

Tested by

no test coverage detected