Branch Coverage

blib/lib/DBIx/PivotQuery.pm
Criterion Covered Total %
branch 38 58 65.5


line true false branch
105 0 5 if @_ & 1
107 0 5 unless $options{'sql'}
109 0 5 unless $options{'dbh'}
113 1 4 if ($options{'subtotals'} and not ref $options{'subtotals'})
121 1 4 if ($subtotals)
132 2 0 $options{'headers'} ? :
137 3 11 if ($last ne $curr)
153 0 7 if @_ & 1
159 0 7 if (exists $options{'aggregate_columns'}) { }
162 7 0 /(\w+)\w*$/ ? :
170 0 0 unless @_ >= 2
182 0 0 if (defined $last_key) { }
228 0 10 if @_ & 1
233 6 4 unless (exists $options{'headers'})
237 1 9 unless $options{'columns'}
238 1 9 unless $options{'rows'}
239 0 10 unless $options{'aggregate'}
243 0 10 if ($options{'sort_columns'}) { }
258 48 99 unless (exists $colnum{$colkey})
267 0 10 unless (@colhead)
277 37 110 if (defined $last_row and $rowkey ne $last_row)
286 47 100 unless (@row)
287 70 10 defined $_ ? :
296 10 0 if (@row)
301 7 3 if $options{'headers'}
350 0 8 if @_ & 1
351 0 8 unless $options{'rows'}
0 8 unless $options{'columns'}
355 8 0 if ($keycolumns)