Branch Coverage

blib/lib/WWW/Analytics/MultiTouch.pm
Criterion Covered Total %
branch 54 152 35.5


line true false branch
91 0 0 unless (exists $$self{'analytics'})
96 0 0 unless ($$self{'refresh_token'})
128 0 0 if ($start_date <= $t and $t < $end_date)
130 0 0 if $key
147 0 0 unless defined $start_index
153 0 0 defined $remaining_items && $remaining_items < $max_items_per_page ? :
160 0 0 unless ($page->is_success)
164 0 0 if (not defined $res) { }
172 0 0 if $page->total_results == 0 or $items_per_page < $max_results
174 0 0 if defined $remaining_items
213 2 0 if ($date)
215 0 2 unless defined $d
226 0 25 unless $events
232 0 25 if ($$self{'bugfix1'})
234 0 0 if ($$_[0] eq 'organic' and $$_[1] ne 'organic')
271 0 25 unless ($$order[0] eq '__ORD' and 'TID' . $$order[1] eq $tid and $$order[3] =~ /^\d+$/)
292 0 49 if (@$entry != 4)
296 3 46 if $$entry[3] < $window_start
297 5 41 if ($$entry[0] =~ /__ORD/)
298 1 4 if $params{'single_order_model'}
302 29 94 unless $$entry[$_]
41 0 if (my $channel = $self->_map_channel(join($$self{'patsep'}, map({'(none)' unless $$entry[$_];} @$patsubst))))
303 25 16 if ($first_touch)
308 41 0 unless ($first_touch_channels{$channel} and not $seen_first_touch{$channel})
318 25 0 if (@{$touchlist[-1];} > 0)
326 0 1 if ($start > $end)
334 0 0 if ($end <= $start)
341 25 0 if (defined $firstchannel)
351 9 16 if ($end == $start)
356 25 0 if defined $firstchannel
357 16 9 if defined $lastchannel
358 25 0 if (@channels)
372 25 0 if (scalar keys %touches > 0)
431 36 5 if defined $$self{'no_mappings'}
433 5 0 unless (exists $$self{'compiled_mappings'})
434 5 0 if (scalar keys %{$$self{'channel_map'};} == 0)
441 0 0 if ($key =~ m[ ^/(.*)/$ ]x)
446 0 0 if ($@)
452 0 0 if (exists $$self{'channel_map'}{$channel})
457 0 0 if $channel =~ /$$match[0]/
465 0 206 exists $$header_map{$header} ? :
508 0 0 if ($params{'filename'} =~ /\.(xls|txt|csv)$/i) { }
0 0 elsif (not defined $params{'format'}) { }
520 0 0 unless ($self->can($method))
524 0 0 unless $params{$method}
530 0 0 if ($params{'report_writer'}) { }
544 0 0 unless ref $h2 eq 'HASH'
647 1 12 if $$params{'strict_integer_values'}
653 9 4 if ($$params{'total_100'}) { }
669 0 36 unless $$b[3][0] <=> $$a[3][0]
719 0 7 unless $channels{$b} <=> $channels{$a}
804 1 1 @total > 0 ? :
809 0 1 if (@total > 10)
812 0 0 $total[$i++][1] <= $threshold ? :
816 0 1 if $rest
826 0 4 if ($rest)
828 0 0 $channel eq 'OVERALL' ? :
0 0 unless $channel eq 'OVERALL' ? $$transdistoverall{$$_[0]} : $$transdist{$$_[0]}{$channel}
940 1 62 if defined $$params{$_}
950 5 10 if (/source/)
951 5 5 if (/med/)
952 5 0 if (/sub|cat/)
955 0 5 unless (@idx)
963 25 0 if $dv =~ /^[0-9.]+$/
970 0 0 ref $_ eq 'CODE' ? :
971 0 0 if $$self{'debug'}
997 0 0 if exists $$opts{$_}
1014 55 0 if defined $t
1055 0 0 if ($conf_file)
1056 0 0 unless -f $conf_file and -r $conf_file
1075 0 0 if (-f $$opts{'auth_file'})
1078 0 0 if ($$opts{'debug'})
1080 0 0 unless open my $fh, '<', $$opts{'auth_file'}
1096 0 0 if @parts > 1
1104 0 0 if (exists $$hash{$key} and ref $$hash{$key} ne 'ARRAY')
1108 0 0 if (ref $v eq 'HASH')