func (assert Assertion) PanicMsg(t TestController, do func(), assertMsg func(interface{}) bool) {
	t.Helper()

	panicked := true

	defer func() {
		t.Helper()

		err := recover()

		assert(t, panicked, rejection.PanicExpected)

		if panicked {
			result := assertMsg(err)
			assert(t, result, rejection.InvalidPanicMsg)
		}
	}()
	do()

	panicked = false
}
// PanicMsg asserts that the provided function triggers panic with the provided message
PanicMsg asserts that the provided function triggers panic with the provided message
// PanicMsg asserts that the provided function triggers panic with the provided message
func (assert Assertion) PanicMsg(t TestController, do func(), assertMsg func(interface{}) bool) {
	t.Helper()
	panicked := true
	defer func() {
		t.Helper()
		err := recover()
		assert(t, panicked, rejection.PanicExpected)
		if panicked {
			result := assertMsg(err)
			assert(t, result, rejection.InvalidPanicMsg)
		}
	}()
	do()
	panicked = false
}
func ( assert Assertion ) PanicMsg ( t TestController , do func ( ) , assertMsg func ( interface { } ) bool ) { t . Helper ( ) panicked := true defer func ( ) { t . Helper ( ) err := recover ( ) assert ( t , panicked , rejection . PanicExpected ) if panicked { result := assertMsg ( err ) assert ( t , result , rejection . InvalidPanicMsg ) } } ( ) do ( ) panicked = false }
PanicMsg asserts that the provided function triggers panic with the provided message
PanicMsg asserts that the provided function triggers panic with the provided message