Branch Coverage

blib/lib/Text/Diff/Table.pm
Criterion Covered Total %
branch 56 76 73.6


line true false branch
34 12 24 if ($1) { }
74 0 0 $Text::Diff::Config::Output_Unicode ? :
105 0 exists $escapes{$_} ? :
96 0 15 if ($opcode eq ' ')
100 8 7 if $opcode eq ' ' or $opcode eq '-'
102 7 8 if $opcode eq ' ' or $opcode eq '+'
116 0 7 $A->[1] eq $B->[1] ? :
0 7 $A == $missing_elt ? :
1 7 $B == $missing_elt ? :
120 1 7 if ($elt_type ne '*') { }
121 0 1 if ($elt_type eq '=' or $A->[1] =~ /\S/ or $B->[1] =~ /\S/) { }
134 2 5 unless defined $body_A
137 1 6 unless defined $body_B
141 1 6 if ($l_ws_A ne $l_ws_B)
146 0 1 if $l_ws_A =~ s/\t/\\t/g
147 1 0 if $l_ws_B =~ s/\t/\\t/g
150 3 4 if ($t_ws_A ne $t_ws_B) { }
153 2 1 if $t_ws_A =~ s/ /\\s/g
154 0 3 if $t_ws_B =~ s/ /\\s/g
155 1 2 if $t_ws_A =~ s/\t/\\t/g
156 2 1 if $t_ws_B =~ s/\t/\\t/g
182 4 3 if ($do_back_escape)
190 3 4 unless ($do_tab_escape)
217 0 8 if (defined $options->{'FILENAME_A'} or defined $options->{'FILENAME_B'})
221 0 0 defined $_ ? :
229 0 8 if (defined $options->{'MTIME_A'} or defined $options->{'MTIME_B'})
232 0 0 defined $_ && length $_ ? :
246 0 8 if (defined $options->{'INDEX_LABEL'})
247 0 0 unless @heading_lines
257 7 8 if $cols->[-1] eq 'bar'
258 1 7 if ($cols->[0] ne $cols->[2])
264 7 1 unless ($four_column_mode)
266 7 7 if $cols->[-1] eq 'bar'
273 8 8 if $cols->[-1] eq 'bar'
275 23 2 if defined $cols->[$i] and length $cols->[$i] > $w[$i]
280 1 7 $four_column_mode ? :
295 1 7 if $four_column_mode
315 0 8 @heading_lines ? :