MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / TestPanicFormattingCustomError

Function TestPanicFormattingCustomError

lambda/panic_test.go:37–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestPanicFormattingCustomError(t *testing.T) {
38 type CustomError struct{ error }
39 customError := &CustomError{errors.New("oh noooooo!")}
40 assertPanicMessage(t, func() { panic(customError) }, customError.Error())
41}
42
43func TestPanicFormattingInvokeResponse_Error(t *testing.T) {
44 ive := &messages.InvokeResponse_Error{Message: "message", Type: "type"}

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.95
assertPanicMessageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…