func ErrorRE(t *testing.T, expected string, actual error) {
	var err string
	if actual != nil {
		err = actual.Error()
	}
	if !regexp.MustCompile(expected).MatchString(err) {
		t.Errorf("Unexpected error: %s", err)
	}
	if actual != nil {
		t.SkipNow()
	}
}
// ErrorRE compares actual.Error() against expected, which is treated as a
// regular expression, and triggers an error if they do not match. If actual is
// non-nil, t.SkipNow() is called as well.
ErrorRE compares actual.Error() against expected, which is treated as a
regular expression, and triggers an error if they do not match. If actual is
non-nil, t.SkipNow() is called as well.
// ErrorRE compares actual . Error () against expected which is treated as a // regular expression and triggers an error if they do not match . If actual is // non - nil t . SkipNow () is called as well .
func ErrorRE(t *testing.T, expected string, actual error) {
	var err string
	if actual != nil {
		err = actual.Error()
	}
	if !regexp.MustCompile(expected).MatchString(err) {
		t.Errorf("Unexpected error: %s", err)
	}
	if actual != nil {
		t.SkipNow()
	}
}
func ErrorRE ( t * testing . T , expected string , actual error ) { var err string if actual != nil { err = actual . Error ( ) } if ! regexp . MustCompile ( expected ) . MatchString ( err ) { t . Errorf ( " " , err ) } if actual != nil { t . SkipNow ( ) } }
ErrorRE compares actual.Error() against expected, which is treated as a
regular expression, and triggers an error if they do not match.
ErrorRE compares actual . Error () against expected which is treated as a regular expression and triggers an error if they do not match .