Condition Coverage

blib/lib/JSON/JSONFold.pm
Criterion Covered Total %
condition 62 97 63.9


and 3 conditions

line !l l&&!r l&&r condition
368 35 0 39 @_ == 1 && ref $_[0]
504 49 47 73 $parent_kind && !$opener && !$closer
773 0 0 20 $fh and $fh->can("flush")
837 45 23 35 $line->[9] and $self->_try_pack($frame, $line)
838 23 35 10 $line->[8] and $self->_try_join($frame, $line)
850 27 41 0 $frame->[10] and $line->width > $self->[2][1]
868 0 0 45 $prev->[0] == $line->[0] && $prev->[3] + $line->[3] <= $limit && $prev->[0] + length($prev->[1]) + 1 + length($line->[1]) <= $self->[2][1]
895 23 0 35 $prev->[9] and $prev->[5] < $self->[2][4]
23 0 35 $prev->[9] and $prev->[5] < $self->[2][4] and $self->_can_merge($prev, $line, $frame->[4])
912 33 0 10 $prev->[8] and $prev->[5] < $self->[2][10]
33 0 10 $prev->[8] and $prev->[5] < $self->[2][10] and $self->_can_merge($prev, $line, $frame->[6])

or 2 conditions

line l !l condition
28 1 18 delete $overrides{'gold'} // 1
32 19 0 ref $class || $class || __PACKAGE__
161 1 18 $opt{'sort_keys'} // 1
162 0 19 $indent //= 2
380 36 0 ref $base || __PACKAGE__
389 18 1 $config // ""
493 151 18 $parent_kind //= undef
501 47 122 $JSON::JSONFold::Kind::OPENING_KIND{$last} // undef
502 47 122 $JSON::JSONFold::Kind::CLOSING_KIND{$body} // undef
611 47 0 $arg{'depth'} // 0
612 47 0 $arg{'lines'} || []
613 47 0 $arg{'pack_limit'} // 0
614 47 0 $arg{'fold_limit'} // 0
615 47 0 $arg{'join_limit'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
30 0 19 0 delete $overrides{'json'} // _json_coder($gold, $indent, %overrides)
104 0 0 0 $width //= $overrides{'width'}
110 0 0 1 $width //= $overrides{'width'}
836 4 6 18 $frame->[10] || $line->[9] || $line->[8]
891 0 0 58 $frame->[4] <= 1 or not $line->[9]
0 0 58 $frame->[4] <= 1 or not $line->[9] or $frame->is_empty
907 0 0 45 $frame->[6] <= 1 or not $line->[8]
0 2 43 $frame->[6] <= 1 or not $line->[8] or $line->[5] >= $self->[2][10]
2 0 43 $frame->[6] <= 1 or not $line->[8] or $line->[5] >= $self->[2][10] or $frame->is_empty
949 22 0 25 not $frame->[10] or $frame->[7] != 1
22 0 25 not $frame->[10] or $frame->[7] != 1 or @{$frame->[3];} != 3
968 8 15 19 $last->[9] || $last->[8]