Condition Coverage

blib/lib/Config/Patch.pm
Criterion Covered Total %
condition 22 28 78.5


and 3 conditions

line !l l&&!r l&&r condition
351 0 0 2 length $newvalue and substr($newvalue, -1, 1) ne "\n"
397 1 8 10 length $replace and substr($replace, -1, 1) ne "\n"
480 10 12 35 $first and substr($string, $first, 1) ne "\n"
487 0 22 31 $last < length $string and substr($string, $last, 1) ne "\n"
495 18 3 1 @positions and $positions[-1][1] > $first
577 163 33 108 $in_patch and not $_ =~ /$$self{'patch_regex'}/
585 238 33 33 $_ =~ /$$self{'patch_regex'}/ and $in_patch

or 3 conditions

line l !l&&r !l&&!r condition
580 66 0 238 $_ =~ /$$self{'patch_regex'}/ or $in_patch

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
618 33 0 33 0 $in_patch xor 1