Condition Coverage

lib/BarefootJS.pm
Criterion Covered Total %
condition 61 173 35.2


and 3 conditions

line !l l&&!r l&&r condition
65 27 0 1 not exists $self->{$attr} and exists $ATTR_DEFAULT{$attr}
137 0 0 0 defined $host and CORE::length $host
141 0 0 0 defined $mount and CORE::length $mount
167 0 0 0 $props and %$props
203 0 0 0 $CONTEXT_STACKS{$name} and @{$CONTEXT_STACKS{$name};}
209 0 0 0 $stack and @$stack
259 0 0 0 defined $host and CORE::length $host
263 0 0 0 $self->_props and %{$self->_props;}
300 0 0 0 @args == 1 && ref $args[0] eq 'HASH'
452 0 0 0 defined $prop_name and exists $props->{$prop_name}
0 0 0 defined $prop_name and exists $props->{$prop_name} and defined $props->{$prop_name}
599 2 5 2 defined $elem and $item eq $elem
702 0 20 5 defined $elem and $item eq $elem
796 0 0 0 $depth != 0 and ref $el eq "ARRAY"
911 1 0 16 defined $recv && !ref($recv)
944 1 1 1 $n > 0 and $n < scalar @parts
959 2 0 10 defined $recv && !ref($recv)
979 0 0 10 defined $recv && !ref($recv)
1004 1 0 8 defined $recv && !ref($recv)
1021 1 0 6 defined $recv && !ref($recv)
1049 1 0 6 defined $recv && !ref($recv)
1054 0 0 3 defined $recv && !ref($recv)
1112 18 0 24 $_->{'key_kind'} eq 'field' && ref $item eq 'HASH'
1140 3 0 6 &looks_like_number(scalar($av // "")) and &looks_like_number(scalar($bv // ""))
1184 0 0 0 $key_kind eq 'field' && ref $item eq 'HASH'
1199 0 0 0 defined $n and &looks_like_number($n)
1313 1 1 23 defined $bag and ref $bag eq "HASH"
1319 11 16 4 CORE::length $key > 2 and substr($key, 0, 2) eq "on"
1345 0 0 2 defined $css and CORE::length $css

or 2 conditions

line l !l condition
128 0 0 $self->_scope_id // ""
198 0 0 $CONTEXT_STACKS{$name} //= []
255 0 0 $self->_scope_id // ""
260 0 0 $mount // ""
348 0 1 $opts{'signal_init'} // {}
367 1 0 $manifest->{$entry_name}{'markedTemplate'} // ""
604 4 1 $recv // ""
5 0 $elem // ""
672 0 0 $sep //= ","
682 0 0 $recv // ""
761 10 0 $start // 0
1040 9 0 $target // 0
1101 15 0 $_->{'key_kind'} // "self"
9 6 $_->{'key'} // ""
15 0 $_->{'compare_type'} // "numeric"
15 0 $_->{'direction'} // "asc"
1103 13 0 $opts->{'keys'} // []
1137 10 0 $av // ""
10 0 $bv // ""
1140 9 0 $av // ""
6 0 $bv // ""
1141 6 0 $av // 0
6 0 $bv // 0
1143 3 0 $av // ""
3 0 $bv // ""
1145 20 0 $av // 0
20 0 $bv // 0
1170 0 0 $opts->{'op'} // "+"
1171 0 0 $opts->{'key_kind'} // "self"
1172 0 0 $opts->{'key'} // ""
1173 0 0 $opts->{'type'} // "numeric"
1174 0 0 $opts->{'direction'} // "left"
1188 0 0 $opts->{'init'} // ""
1193 0 0 $opts->{'init'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
382 0 0 0 $caller // $parent
383 0 0 0 $host->_scope_id // $parent_scope
551 0 0 0 $n == 9**9**9 || $n == -9**9**9
727 1 1 4 $idx < 0 or $idx >= $len
886 0 0 0 not defined $digits or $digits < 0
1336 2 0 24 ref $val eq "JSON::PP::Boolean" or ref $val eq "Mojo::JSON::_Bool"