Condition Coverage

blib/lib/RapidApp/Util.pm
Criterion Covered Total %
condition 9 120 7.5


and 3 conditions

line !l l&&!r l&&r condition
89 0 0 0 ref $_ eq 'ARRAY' and scalar @$_ == 3
0 0 0 ref $_ eq 'ARRAY' and scalar @$_ == 3 and ref $_->[0] eq 'HASH'
0 0 0 ref $_ eq 'ARRAY' and scalar @$_ == 3 and ref $_->[0] eq 'HASH' and defined $_->[0]{'package'}
126 0 0 0 ref $item eq 'HASH' and defined $last
0 0 0 ref $item eq 'HASH' and defined $last and not ref $last
149 0 0 0 ref $item eq 'HASH' and defined $last
0 0 0 ref $item eq 'HASH' and defined $last and not ref $last
165 1339 0 1631 ref $v && ref $v eq 'SCALAR'
209 0 0 0 $regex and not eval '$item->{subroutine} =~ /' . $regex . '/'
227 6191 3652 184 @_ == 1 and ref $_[0] eq 'ARRAY'
254 0 0 0 ref $_[0] eq 'CODE' and @_ > 1
0 0 0 ref $_[0] eq 'CODE' and @_ > 1 and $recurse == 0
278 0 0 6 defined $max_length and $max_length =~ /^\d+$/
0 0 6 defined $max_length and $max_length =~ /^\d+$/ and $max_length > 0
388 0 0 0 $opt{'verbose'} and not defined $opt{'verbose_in'}
389 0 0 0 $opt{'verbose'} and not defined $opt{'verbose_out'}
393 0 0 0 @_ > 0 and defined $_[0]
442 0 0 0 $leave_nest && $nest_level
457 0 0 0 $max < $_ and $max = $_
538 0 0 0 $has_refs and $opt{'verbose_in'}
579 0 0 0 $max < $_ and $max = $_
710 0 0 0 scalar @_ == 1 and ref $_[0] eq ''
721 1508 1 0 &blessed($js) and not $js->can('TO_JSON_RAW')
751 0 0 0 ref $text and ref($text)->isa('RapidApp::HTML::RawHtml')
791 0 0 0 ref $msg and ref($msg)->isa('RapidApp::Responder::UserError')
793 0 0 0 ref $msg && ref($msg)->isa('RapidApp::HTML::RawHtml')
837 0 0 0 ref $msg && ref($msg)->isa('RapidApp::HTML::RawHtml')
926 0 0 0 scalar(@_) % 2 and not ref $_[0]
928 0 0 0 ref $_[0] && ref $_[0] eq 'HASH'
994 0 0 0 $_[0] and $_[0] eq 'RapidApp::Util'

or 2 conditions

line l !l condition
79 0 0 $Data::Dumper::Maxdepth || 4
181 0 0 shift() || 1
195 0 0 shift() || 1
237 0 0 ref $ref || (return $ref, @_)
386 0 0 $opt{'around'} ||= sub { my $orig = shift(); my $self = shift(); print STDERR "\n" if $opt{'newline'}; return $self->$orig(@_); }
610 0 0 $RapidApp::Util::debug_around_stats->{$k} || {}

or 3 conditions

line l !l&&r !l&&!r condition
89 0 0 0 $_ eq 'no_caller_data' or ref $_ eq 'ARRAY' and scalar @$_ == 3 and ref $_->[0] eq 'HASH' and defined $_->[0]{'package'}
629 0 0 0 $opt{'arg_ignore'}->(@args) || $opt{'return_ignore'}->(@res_copy)
682 0 0 0 shift() || caller
798 0 0 0 $keyAliases{$key} || $key
843 0 0 0 $keyAliases{$key} || $key
930 0 0 0 $msg ||= $opt{'msg'}