Branch Coverage

blib/lib/HTML/DataTable.pm
Criterion Covered Total %
branch 0 120 0.0


line true false branch
148 0 0 ref $_[0] ? :
163 0 0 unless ($$me{'columns'})
174 0 0 if grep $$_{'shade_alternate_vals'}, @{$$me{'columns'};}
178 0 0 if ($$me{'alphabet'} and not $$me{'data'}{'search'})
182 0 0 if ($$me{'data'}{'search'})
188 0 0 if defined $$me{'data'}{'sort'} and $$me{'data'}{'sort'} eq $$me{'sort'}[0]
189 0 0 if defined $$me{'data'}{'sort'}
191 0 0 if defined $$me{'data'}{'sort_dir'} and $$me{'data'}{'sort_dir'} eq 'asc'
192 0 0 if defined $$me{'data'}{'sort_dir'}
193 0 0 if ($$me{'sort'})
199 0 0 if $$me{'hed'}
205 0 0 if $$me{'search'}
209 0 0 if $$me{'alphabet'}
210 0 0 if $$me{'search'} and not $$me{'hide_search_form'}
213 0 0 if $alphabet or $search
217 0 0 unless defined $$me{'header'} and $$me{'header'} eq 'no' or $$me{'sections'} and $$me{'header'} ne 'yes'
228 0 0 if (not $rows and $$me{'hide_if_empty'})
232 0 0 if $$me{'search'}
235 0 0 if $$me{'javascript'}
248 0 0 if (grep $$_{'category'}, @{$$me{'columns'};})
252 0 0 if $i_col
253 0 0 if ($i_col++ and $$col{'category'} ne $$prev_col{'category'})
271 0 0 if $$me{'header_bar'}
281 0 0 if ($$col{'sort'}) { }
282 0 0 if ($$col{'sort'} eq $$me{'sort'}[0]) { }
283 0 0 $$me{'sort_dir'} eq 'desc' ? :
329 0 0 if (ref $$me{'rows'} eq 'ARRAY') { }
0 0 elsif (ref $$me{'rows'} eq 'HASH') { }
345 0 0 if ($$me{'sections'} and $$me{'_section'} ne (my $section = $$me{'sections'}(@$d)))
347 0 0 if $$me{'section_headers'} ne 'no'
358 0 0 unless defined $$me{'shade_alternate_rows'} and $$me{'shade_alternate_rows'} eq 'no'
376 0 0 defined $$me{'_bgcolor'} && $$me{'_bgcolor'} eq $$me{'light_bg'} ? :
402 0 0 if (not ref $$col{'format'}) { }
0 0 elsif (ref $$col{'format'} eq 'ARRAY') { }
0 0 elsif (ref $$col{'format'} eq 'HASH') { }
404 0 0 if ($$col{'format'} =~ /\D/) { }
416 0 0 if $value == 0
417 0 0 if $value > 1
418 0 0 if $value > 1 and $plural
424 0 0 unless ($$col{'formatter'})
445 0 0 if (not ref $test eq 'CODE' && !&$test(@data) and $formatted = $$col{'formatter'}(map({$$col{'contains_html'} ? $_ : HTML($_);} @data))) { }
0 0 elsif ($$col{'action'} and $$col{'link_empty'}) { }
0 0 elsif ($$col{'none_not_dimmed'}) { }
446 0 0 $$col{'contains_html'} ? :
452 0 0 if ($$col{'norepeat'} and $formatted eq $$col{'_prev_value'}) { }
455 0 0 if $$col{'shade_alternate_vals'}
457 0 0 if $$col{'action'}
482 0 0 if (ref $action eq 'CODE')
483 0 0 unless $action
491 0 0 unless $q_format
492 0 0 if (ref $q_format eq 'CODE') { }
0 0 elsif ($q_format eq 'format') { }
504 0 0 if %query_data
505 0 0 $action =~ /\?/ ? :
0 0 if $query_string
515 0 0 if $$me{'data'}{'search'}
517 0 0 lc $l eq lc $letter ? :
531 0 0 %data ? :
545 0 0 unless open my $fh, '>', \my($str)
557 0 0 if ($$me{'sort'})