Branch Coverage

blib/lib/Algorithm/Diff/HTMLTable.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
24 0 7 if @_ != 2
33 4 10 if ref $files{$name} and ref $files{$name} eq 'ARRAY'
35 0 10 unless -f $files{$name}
36 0 10 unless -r $files{$name}
53 3 4 defined $self->{'id'} ? :
83 27 28 if (my $count = $diff->Same) { }
5 23 elsif (not $diff->Items(2)) { }
10 13 elsif (not $diff->Items(1)) { }
99 5 0 @items_1 > @items_2 ? :
116 0 10 @items_1 > @items_2 ? :
133 0 13 @items_1 > @items_2 ? :
159 31 47 $color_a ? :
160 36 42 $color_b ? :
187 2 12 if ($$self{"title_$index"})
191 2 10 unless -f $file
209 0 14 unless $file
211 4 10 if ($file and ref $file and ref $file eq 'ARRAY')
215 0 10 unless -r $file
218 10 0 if (open my $fh, '<', $file)
219 2 8 if ($self->{'encoding'})