Assert-Refute
view release on metacpan or search on metacpan
lib/Assert/Refute.pm view on Meta::CPAN
This is basically what one expects from a module in C<Assert::*> namespace.
=head2 refute_these
B<[DEPRECATED]> Same as above.
It will stay available (with a warning) until as least 0.15.
=cut
sub try_refute(&;@) { ## no critic # need prototype
my ( $block, @arg ) = @_;
# Should a missing config even happen? Ok, play defensively...
my $conf = $CALLER_CONF{+caller};
if( !$conf ) {
carp "try_refute(): Usage without explicit configure() is DEPRECATED, assuming { on_fail => 'carp' }";
$conf = __PACKAGE__->configure( { on_fail => 'carp' }, scalar caller );
};
return $conf->{skip_all} if exists $conf->{skip_all};
( run in 0.544 second using v1.01-cache-2.11-cpan-49f99fa48dc )