Condition Coverage

blib/lib/Text/Diff/Parser.pm
Criterion Covered Total %
condition 50 65 76.9


and 3 conditions

line !l l&&!r l&&r condition
119 0 0 68 $prev->type ne $ch->type and $prev->filename1 eq $ch->filename1
0 0 68 $prev->type ne $ch->type and $prev->filename1 eq $ch->filename1 and $prev->filename2 eq $ch->filename2
0 30 38 $prev->type ne $ch->type and $prev->filename1 eq $ch->filename1 and $prev->filename2 eq $ch->filename2 and $size == $ch->size
124 2 0 36 $prev->type eq 'REMOVE' and $prev->line2 == $ch->line2
2 0 36 $prev->type eq 'REMOVE' and $prev->line2 == $ch->line2 and $prev->line1 + $size == $ch->line1
0 0 2 $prev->type eq 'ADD' and $prev->line2 + $size == $ch->line2
0 0 2 $prev->type eq 'ADD' and $prev->line2 + $size == $ch->line2 and $prev->line1 == $ch->line1
332 0 1961 0 $$self{'trustatat'} and $$change{'size1'} > $$self{'count1'} || $$change{'size2'} > $$self{'count2'}
337 1929 29 3 $done and $line =~ /^---/

or 2 conditions

line l !l condition
305 40 1 $2 || ''
312 117 4 $2 || 0
119 2 $4 || 0
6 115 $5 || ''

or 3 conditions

line l !l&&r !l&&!r condition
30 1 1 1 ref $diff or not $diff =~ /\n/
80 35 49 88 $ch->filename1 eq $file or $ch->filename2 eq $file
224 29 11 204 $line =~ /^--- (.+?)\t(.+)$/ or $line =~ /^--- ([^\s]+)\s+(.+)$/
40 1 203 $line =~ /^--- (.+?)\t(.+)$/ or $line =~ /^--- ([^\s]+)\s+(.+)$/ or $line =~ /^--- ([^\s]+)$/
0 0 203 $line =~ /^\*\*\* (.+?)\t(.+)$/ or $line =~ /^\*\*\* ([^\s]+)\s+(.+)$/
302 29 11 2083 $line =~ /^\+\+\+ (.+?)\t(.+)$/ or $line =~ /^\+\+\+ ([^\s]+)\s+(.+)$/
40 1 2082 $line =~ /^\+\+\+ (.+?)\t(.+)$/ or $line =~ /^\+\+\+ ([^\s]+)\s+(.+)$/ or $line =~ /^\+\+\+ ([^\s]+)$/
332 1920 9 32 $$change{'size1'} > $$self{'count1'} || $$change{'size2'} > $$self{'count2'}
427 233 205 251 $$self{'type'} eq 'ADD' or $$self{'type'} eq 'REMOVE'
438 5 246 $$self{'type'} eq 'ADD' or $$self{'type'} eq 'REMOVE' or $$self{'type'} eq 'MODIFY'