Example #1
0
func TestDoubleWrap(t *testing.T) {
	e := stackerr.New("")
	if stackerr.WrapSkip(e, 1) != e {
		t.Fatal("double wrap failure")
	}
}
Example #2
0
func TestNilWrap(t *testing.T) {
	if stackerr.WrapSkip(nil, 1) != nil {
		t.Fatal("did not get nil error")
	}
}