}
}
-sub req_errorlist_for {
+sub req_errorlist_for { shift->modreq_errorlist_for(@_) } # deprecated
+sub modreq_errorlist_for {
my $self = shift;
$self->_errorlist_for_modreqs( $self->_groups_to_reqs(@_)->{modreqs} );
}
in case of failure throws an exception including the information
from L</req_missing_for>.
-=head2 req_errorlist_for
+=head2 modreq_errorlist_for
=over
Returns a hashref containing the actual errors that occurred while attempting
to load each module in the requirement group(s).
+
+=head2 req_errorlist_for
+
+Deprecated method name, equivalent (via proxy) to L</modreq_errorlist_for>.
+
EOC
);
like (
- DBIx::Class::Optional::Dependencies->req_errorlist_for ($_)->{'SQL::Translator'},
+ DBIx::Class::Optional::Dependencies->modreq_errorlist_for ($_)->{'SQL::Translator'},
qr/Optional Dep Test/,
'custom exception found in errorlist',
);
);
is_deeply (
+ # use the deprecated method name
DBIx::Class::Optional::Dependencies->req_errorlist_for ($_),
undef,
'expected empty errorlist',