Branch Coverage

blib/lib/Stream/Aggregate.pm
Criterion Covered Total %
branch 136 198 68.6


line true false branch
84 0 0 unless defined $value
85 0 0 if $value eq ''
171 5 0 $$agg_config{'strict'} ? :
177 0 5 $$agg_config{'debug'} ? :
179 3 2 if ($$agg_config{'crossproduct'} and keys %{$$agg_config{'crossproduct'};})
212 8 54 unless (defined $cc_code)
217 19 35 if $varname{$cc_code}
219 0 35 if $varname{$cc_code}
220 1 17 defined $varname{$1} ? :
221 5 30 if ($cc_code =~ /\breturn\b/) { }
7 23 elsif ($cc_code =~ /[;\n]/) { }
0 23 elsif ($cc_code =~ /\A\$(column_\w+)\Z/) { }
223 5 0 if $renumber
235 7 0 if $renumber
241 23 0 if $renumber
248 0 35 if $@
250 0 35 if $varname{$body}
278 56 34 unless $$agg_config{$ucc}
280 0 62 if $seen{$cc}++
292 3 10 if $donekeep{$varname{$$agg_config{$keepers}{$cc}}}
301 4 1 if ($has_keepers)
308 4 0 if $renumber
314 4 0 if $renumber
319 4 0 if $renumber
323 4 0 if $renumber
334 4 0 if $renumber
421 25 45 if keys %{$$agg_config{$icol};}
429 3 2 if $$agg_config{'finalize_result'}
432 5 0 if $renumber
443 45 5 if $func
446 86 114 unless exists $s{$s}
447 114 0 if $renumber
452 4 46 if $func and not $something
454 45 5 if $func
462 3 2 if (@cross_keys) { }
0 2 elsif ($$agg_config{'combinations'}) { }
479 0 9 unless $var_types{$cc}
480 0 9 unless $cross_cols{$var_types{$cc}}
484 9 0 if $renumber
535 2 7 if (keys %$valcounts > $$agg_config{'crossproduct'}{$keyname})
542 12 3 if ($current > $limit)
544 0 12 if $new eq $val
545 10 2 if ($seen{$new}++)
549 0 12 if ($new{$val}) { }
552 0 0 unless --$seen{$new}
561 0 9 if $$agg_config{'debug'} > 2
567 0 3 if $$agg_config{'debug'}
568 0 3 if $$agg_config{'debug'}
569 3 0 if $renumber
600 3 0 if $renumber
607 0 3 if $$agg_config{'debug'} > 3
621 3 0 if $renumber
628 2 1 if ($$agg_config{'combinations'})
638 16 1 if $$agg_config{'combinations'}{$_}
640 10 2 if ($loop_over)
648 2 8 unless (@loop_keys)
656 6 10 if ($mapping{"@keeping"}++)
662 8 2 @keeping ? :
665 3 7 if ($loop_over and @keeping)
674 8 2 if @keeping
682 5 5 if $input_ps ne '$oldps'
702 10 2 if ($loop_over)
710 2 8 unless (@loop_keys)
732 0 3 if $$agg_config{'debug'} > 7
733 0 3 if $$agg_config{'debug'} > 8
737 0 3 if $$agg_config{'debug'} > 8
758 3 0 if $renumber
808 1 4 if Dump($agg_config) =~ /\{heap\}/
810 4 1 if ($has_keepers)
814 2 3 if $$agg_config{'filter'}
815 5 0 if $s{'initialize'}
816 0 5 if $$agg_config{'new_context'}
824 0 5 if Dump($agg_config) =~ /\$last_item\b/
837 1 4 if $$agg_config{'preprocess'}
842 2 3 if $$agg_config{'filter'} and $$agg_config{'filter_early'}
846 0 5 if $$agg_config{'passthrough'}
852 2 3 if ($$agg_config{'context'})
853 0 2 if $$agg_config{'filter'} and $$agg_config{'filter_early'}
875 0 2 if $$agg_config{'filter'} and $$agg_config{'filter_early'}
881 0 5 if $$agg_config{'filter'} and not $$agg_config{'filter_early'}
886 2 3 if $$agg_config{'filter'} and not $$agg_config{'context'}
896 2 3 if $$agg_config{'filter'}
904 5 0 if $renumber
910 0 5 if $$agg_config{'debug'} > 11
911 5 0 if $renumber
913 2 3 if $$agg_config{'filter'}
914 5 0 if $renumber
917 0 5 if $$agg_config{'debug'} > 12
929 0 5 if keys %s
931 0 5 if ($suppress_line_numbers)
935 0 5 if $$agg_config{'debug'}
938 0 5 if $@
962 0 9 unless @contexts
964 0 9 if $$agg_config{'debug'} > 5
967 0 9 unless @contexts
969 0 9 unless ref $ps
984 4 5 if $ps
986 9 0 unless $suppress_result
997 0 5 if $@