func PanicsRELoop(tests []PanicRETest, wantREAll *string, notPanicFunc func(testName string),
	notMatchesFunc func(testName string, wantRE string, pVal interface{}),
) {
	var realWantRE string
	var didPanic, pMatchesRE bool
	var pVal interface{}

	for _, test := range tests {
		if wantREAll != nil {
			realWantRE = *wantREAll
		} else {
			realWantRE = test.WantRE
		}
		didPanic, pMatchesRE, pVal = PanicsRE(test.F, realWantRE)
		if !didPanic {
			notPanicFunc(test.Name)
		} else if !pMatchesRE {
			notMatchesFunc(test.Name, realWantRE, pVal)
		}
	}
}
// PanicsRELoop runs through a slice of panic tests, including checking the panic values to make sure they match
// specific regular expressions.  For any test function that does not panic, notPanicFunc is called with the name from
// the test's struct.  For any test function that does panic, but for which the panic value cannot be cast to a string
// or error matching the test's WantRE, notMatchesFunc is called with test information and the panic value.  If
// wantREAll is not nil, it is used in place of the tests' wantREs.  See also PanicsRE().
//
// See NotMatchesFuncErrorFactory() and NotMatchesFuncFatalFactory() for good starting points for notMatchesFunc.
//
// PanicsRELoop itself panics when attempting to run any test for which WantRE does not represent a valid regular
// expression.
PanicsRELoop runs through a slice of panic tests, including checking the panic values to make sure they match
specific regular expressions.  For any test function that does not panic, notPanicFunc is called with the name from
the test's struct.  For any test function that does panic, but for which the panic value cannot be cast to a string
or error matching the test's WantRE, notMatchesFunc is called with test information and the panic value.  If
wantREAll is not nil, it is used in place of the tests' wantREs.  See also PanicsRE().

See NotMatchesFuncErrorFactory() and NotMatchesFuncFatalFactory() for good starting points for notMatchesFunc.

PanicsRELoop itself panics when attempting to run any test for which WantRE does not represent a valid regular
expression.
// PanicsRELoop runs through a slice of panic tests including checking the panic values to make sure they match // specific regular expressions . For any test function that does not panic notPanicFunc is called with the name from // the test ' s struct . For any test function that does panic but for which the panic value cannot be cast to a string // or error matching the test ' s WantRE notMatchesFunc is called with test information and the panic value . If // wantREAll is not nil it is used in place of the tests ' wantREs . See also PanicsRE () . // // See NotMatchesFuncErrorFactory () and NotMatchesFuncFatalFactory () for good starting points for notMatchesFunc . // // PanicsRELoop itself panics when attempting to run any test for which WantRE does not represent a valid regular // expression .
func PanicsRELoop(tests []PanicRETest, wantREAll *string, notPanicFunc func(testName string),
	notMatchesFunc func(testName string, wantRE string, pVal interface{}),
) {
	var realWantRE string
	var didPanic, pMatchesRE bool
	var pVal interface{}
	for _, test := range tests {
		if wantREAll != nil {
			realWantRE = *wantREAll
		} else {
			realWantRE = test.WantRE
		}
		didPanic, pMatchesRE, pVal = PanicsRE(test.F, realWantRE)
		if !didPanic {
			notPanicFunc(test.Name)
		} else if !pMatchesRE {
			notMatchesFunc(test.Name, realWantRE, pVal)
		}
	}
}
func PanicsRELoop ( tests [ ] PanicRETest , wantREAll * string , notPanicFunc func ( testName string ) , notMatchesFunc func ( testName string , wantRE string , pVal interface { } ) , ) { var realWantRE string var didPanic , pMatchesRE bool var pVal interface { } for _ , test := range tests { if wantREAll != nil { realWantRE = * wantREAll } else { realWantRE = test . WantRE } didPanic , pMatchesRE , pVal = PanicsRE ( test . F , realWantRE ) if ! didPanic { notPanicFunc ( test . Name ) } else if ! pMatchesRE { notMatchesFunc ( test . Name , realWantRE , pVal ) } } }
PanicsRELoop runs through a slice of panic tests, including checking the panic values to make sure they match
specific regular expressions.
PanicsRELoop runs through a slice of panic tests including checking the panic values to make sure they match specific regular expressions .