Condition Coverage

blib/lib/RapidApp/Util.pm
Criterion Covered Total %
condition 9 114 7.8


and 3 conditions

line !l l&&!r l&&r condition
85 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'}
122 0 0 0 ref $item eq 'HASH' and defined $last
0 0 0 ref $item eq 'HASH' and defined $last and not ref $last
145 0 0 0 ref $item eq 'HASH' and defined $last
0 0 0 ref $item eq 'HASH' and defined $last and not ref $last
161 1339 0 1631 ref $v && ref $v eq 'SCALAR'
205 0 0 0 $regex and not eval '$item->{subroutine} =~ /' . $regex . '/'
223 6304 3590 184 @_ == 1 and ref $_[0] eq 'ARRAY'
250 0 0 0 ref $_[0] eq 'CODE' and @_ > 1
0 0 0 ref $_[0] eq 'CODE' and @_ > 1 and $recurse == 0
274 0 0 6 defined $max_length and $max_length =~ /^\d+$/
0 0 6 defined $max_length and $max_length =~ /^\d+$/ and $max_length > 0
381 0 0 0 $opt{'verbose'} and not defined $opt{'verbose_in'}
382 0 0 0 $opt{'verbose'} and not defined $opt{'verbose_out'}
386 0 0 0 @_ > 0 and defined $_[0]
419 0 0 0 ref $_ && ++$has_refs
452 0 0 0 $has_refs and $opt{'verbose_in'}
583 0 0 0 scalar @_ == 1 and ref $_[0] eq ''
594 1508 1 0 &blessed($js) and not $js->can('TO_JSON_RAW')
624 0 0 0 ref $text and ref($text)->isa('RapidApp::HTML::RawHtml')
664 0 0 0 ref $msg and ref($msg)->isa('RapidApp::Responder::UserError')
666 0 0 0 ref $msg && ref($msg)->isa('RapidApp::HTML::RawHtml')
710 0 0 0 ref $msg && ref($msg)->isa('RapidApp::HTML::RawHtml')
799 0 0 0 scalar(@_) % 2 and not ref $_[0]
801 0 0 0 ref $_[0] && ref $_[0] eq 'HASH'
867 0 0 0 $_[0] and $_[0] eq 'RapidApp::Util'

or 2 conditions

line l !l condition
75 0 0 $Data::Dumper::Maxdepth || 4
177 0 0 shift() || 1
191 0 0 shift() || 1
233 0 0 ref $ref || (return $ref, @_)
379 0 0 $opt{'around'} ||= sub { my $orig = shift(); my $self = shift(); print STDERR "\n" if $opt{'newline'}; return $self->$orig(@_); }
489 0 0 $RapidApp::Util::debug_around_stats->{$k} || {}

or 3 conditions

line l !l&&r !l&&!r condition
85 0 0 0 $_ eq 'no_caller_data' or ref $_ eq 'ARRAY' and scalar @$_ == 3 and ref $_->[0] eq 'HASH' and defined $_->[0]{'package'}
508 0 0 0 $opt{'arg_ignore'}->(@args) || $opt{'return_ignore'}->(@res_copy)
555 0 0 0 shift() || caller
671 0 0 0 $keyAliases{$key} || $key
716 0 0 0 $keyAliases{$key} || $key
803 0 0 0 $msg ||= $opt{'msg'}