Test-Effects
view release on metacpan or search on metacpan
lib/Test/Effects.pm view on Meta::CPAN
# Correct common mispecifications...
for my $option (keys %BAD_NULL_VALUE_FOR) {
next if !exists $expected->{$option};
if (match( $expected->{$option}, $BAD_NULL_VALUE_FOR{$option} )) {
$expected->{$option} = $NULL_VALUE_FOR{$option};
}
}
# Ensure there's a description...
$desc //= sprintf "Testing effects_ok() at %s line %d", (caller)[1,2];
# Are we echoing this test???
my $is_terse
= exists $expected->{'VERBOSE'} ? !$expected->{'VERBOSE'}
: !$lexical_hint{'Test::Effects::VERBOSE'};
# Show the description...
my $preview_desc = !$is_terse || exists $expected->{'timing'};
if ($preview_desc) {
note '_' x (3 + length $desc);
( run in 1.769 second using v1.01-cache-2.11-cpan-a3c8064c92c )