Condition Coverage

blib/lib/JSON/JSONFold.pm
Criterion Covered Total %
condition 82 130 63.0


and 3 conditions

line !l l&&!r l&&r condition
353 45 0 39 @_ == 1 && ref $_[0]
605 0 0 45 $self->[0] == $other->[0] && $self->[4] + $other->[4] <= $item_limit && $self->[0] + $self->[2] + 1 + $other->[2] <= $width_limit
783 6 0 26 $cfg->[11] > 0 && $self->[11] <= $self->[8]
801 11 9 6 $prev->[9] and $line->[9]
9 0 6 $prev->[9] and $line->[9] and $prev->can_merge($line, $self->[7], $cfg->[1])
942 0 0 2 $fh and $fh->can("flush")
1017 32 23 35 $line->[10] and $prev->[10]
23 0 35 $line->[10] and $prev->[10] and $self->_try_pack($frame, $prev, $line)
1018 27 24 4 $line->[9] and $prev->[9]
24 0 4 $line->[9] and $prev->[9] and $self->_try_join($frame, $prev, $line)
1032 13 59 0 $frame->[13] and $line->width > $self->[2][1]
1037 9 50 8 $frame->[13] and not $frame->check_fold_limits($self->[2])
1041 50 17 0 $frame->[14] and not $line->[11]
1065 6 33 0 $frame->[13] and not $frame->check_fold_limits($self->[2])
1105 0 0 0 defined $line_sig and $line_sig eq $sig
1160 9 5 18 @{$self->[4];} and $frame->[3][0][11]

or 2 conditions

line l !l condition
28 1 18 delete $overrides{'gold'} // 1
32 19 0 ref $class || $class || __PACKAGE__
157 1 18 $opt{'sort_keys'} // 1
158 0 19 $indent //= 2
364 46 0 ref $base || __PACKAGE__
371 18 1 $config // ""
572 47 122 $JSON::JSONFold::Kind::OPENING_KIND{$last} // undef
573 47 122 $JSON::JSONFold::Kind::CLOSING_KIND{$body} // undef
715 47 0 $arg{'kind'} // 0
716 47 0 $arg{'indent'} // 0
717 47 0 $arg{'depth'} // 0
718 0 47 $arg{'lines'} // []
720 47 0 $arg{'pack_limit'} // 0
721 47 0 $arg{'fold_limit'} // 0
722 47 0 $arg{'join_limit'} // 0
723 47 0 $arg{'grid_limit'} // 0
724 47 0 $arg{'grid_min_items'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
30 0 19 0 delete $overrides{'json'} // _json_coder($gold, $indent, %overrides)
100 0 0 0 $width //= $overrides{'width'}
106 0 0 1 $width //= $overrides{'width'}
574 47 47 75 $opener || $closer
751 52 52 62 $line->[7] or $line->[8]
1014 4 0 13 $frame->[13] || $line->[10] || $line->[9]
1047 51 2 19 $frame->[13] or $frame->[14]
1055 4 0 35 $prev->[4] >= $frame->[5] or $prev->[6] >= $self->[2][4]
1059 4 0 35 $prev->[4] >= $frame->[7] or $prev->[6] >= $self->[2][16]
1085 0 1 0 $line_count < 2 or $line_count < $self->[2][10]
1 0 0 $line_count < 2 or $line_count < $self->[2][10] or $line_count > $self->[2][11]
1094 0 0 0 $part_count < 4 or $part_count - 2 < $frame->[9]
1175 0 3 32 not $frame->[13] or $frame->[10] != 1
3 0 32 not $frame->[13] or $frame->[10] != 1 or @{$frame->[3];} != 3
3 0 32 not $frame->[13] or $frame->[10] != 1 or @{$frame->[3];} != 3 or $frame->[1] + $frame->[4] > $self->[2][1]
1188 8 0 11 $last->[10] || $last->[9]