Branch Coverage

blib/lib/Script/Toolbox/Util/Formatter.pm
Criterion Covered Total %
branch 75 110 68.1


line true false branch
39 6 4 defined $container->{'title'} ? :
42 9 1 if (ref $container->{'data'} eq 'ARRAY')
43 1 8 if ref $container->{'data'}[0] eq 'HASH'
44 7 2 if ref $container->{'data'}[0] eq 'ARRAY'
47 1 9 if (ref $container->{'data'} eq 'HASH')
48 1 0 if ref $container->{'data'} eq 'HASH'
52 4 6 defined $container->{'head'} ? :
91 1 0 if (ref $container->{'data'} eq 'HASH')
102 2 6 if ($k eq 'KEY')
104 0 6 unless defined $l->{$k}
163 0 1 unless defined $container->{'data'}[0]
164 0 1 if ref $container->{'data'}[0] eq 'ARRAY'
165 1 0 if (ref $container->{'data'}[0] eq 'HASH')
174 0 6 unless defined $l->{$k}
200 5 1 if (ref $cont->{'data'} eq 'ARRAY')
201 1 4 if (ref $cont->{'data'}[0] eq 'HASH')
204 4 1 if (ref $cont->{'data'}[0] eq 'ARRAY')
213 1 5 if (ref $cont->{'data'} eq 'HASH')
233 1 9 unless defined $self->{'data'}
234 0 9 if scalar @{$self->{'data'};} == 0
280 24 0 if ref $line eq 'ARRAY'
282 0 0 if (ref $line eq 'HASH')
302 16 12 if $f =~ /s$/
317 6 22 if (do { $maxColRef }->[$i] =~ /(\d+)[.](\d+)f$/)
339 9 24 if $i++ == 0
340 0 24 if ref $line eq 'HASH'
341 24 0 if ref $line eq 'ARRAY'
370 16 12 if $ot eq 's'
371 6 6 if $ot eq 'f'
372 6 0 if $ot eq 'd'
399 28 46 unless defined $old
402 38 36 if $nt eq 's' or $ot eq 's'
403 12 24 if $nt eq 'f' or $ot eq 'f'
404 24 0 if $nt eq 'd' and $ot eq 'd'
415 21 9 $nl > $ol ? :
423 0 18 $nl eq '' ? :
424 6 12 $nd eq '' ? :
425 3 15 $od eq '' ? :
426 0 18 $ol eq '' ? :
427 9 9 $nl > $ol ? :
428 3 15 $nd > $od ? :
438 8 46 $nl > $ol ? :
450 6 68 if defined $type
451 39 29 if defined $type
461 29 39 unless $field =~ /^[-]?\d+$/
470 68 6 unless $field =~ /^[-]?(\d+)[.](\d*)$/
523 0 0 if &_isGroupEnd($raw, $i, $colIdx, $pattern, $notGroupBy)
556 0 0 if &_noGroupCol($i, $colIdx, $notGroupBy)
557 0 0 if $PREV[$i] ne $CURR[$i]
568 0 0 if $idx == $sumIdx
569 0 0 unless defined $notGroupBy
571 0 0 if $col == $idx
593 0 0 if ($i == $colIdx) { }
611 0 0 if $I[1] eq '.'
656 0 0 if $O->[$i] ne $L->[$i]