//NotError returns an error if its last argument is not nil.
NotError returns an error if its last argument is not nil.
// NotError returns an error if its last argument is not nil .
func NotError(args ...interface{}) test.Error {
	if err := args[len(args)-1]; err != nil {
		return test.Error{fmt.Errorf("should not have been an error: %w", err)}
	}
	return nil
}
func NotError ( args ... interface { } ) test . Error { if err := args [ len ( args ) - 1 ] ; err != nil { return test . Error { fmt . Errorf ( " " , err ) } } return nil }
NotError returns an error if its last argument is not nil.
NotError returns an error if its last argument is not nil .