Condition Coverage

blib/lib/Method/Cached.pm
Criterion Covered Total %
condition 32 52 61.5


and 3 conditions

line !l l&&!r l&&r condition
21 11 0 2 exists $args{-'domains'} and defined $args{-'domains'}
27 9 0 3 exists $args{-'default'} and defined $args{-'default'}
36 9 0 0 exists $args{-'inherit'} and $args{-'inherit'} eq 'no'
38 5 0 4 $caller ne 'main' and not $caller->isa('Method::Cached')
123 242 0 24 $line == $gv->LINE and $file eq $gv->FILE
149 12 34 0 defined $_[0] and $_[0] =~ /^?\d+$/

or 2 conditions

line l !l condition
54 24 0 $package->_scan_symbol_name($file, $line) || (return)
153 12 36 $dname ||= ''
164 20 4 $_PREPARE_INFO{$package} ||= {}
170 24 0 $_METHOD_INFO{$name} || (return)
171 24 0 $_PREPARE_INFO{$info->{'package'}} || (return)
191 1 3 $domain->{'storage_args'} || undef
199 36 3 $any_class->can($_) or ++$invalid
216 18 53 $info->{'expires'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
51 0 0 2 $args || ()
77 1 0 0 $info->{'key_rule'} || $domain->{'key_rule'}
80 0 1 0 $storage->can('delete') || $storage->can('clear')
190 4 0 0 $domain->{'storage_class'} || croak('storage_class is necessary')
200 0 12 1 $any_class->can('delete') or $any_class->can('remove')
209 72 0 30 $info->{'key_rule'} || $domain->{'key_rule'}