PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value. assert.PanicsWithValue(t, "crazy error", func(){ GoCrazy() })
(t TestingT, expected interface{}, f PanicTestFunc, msgAndArgs ...interface{})