Branch Coverage

blib/lib/Mojo/GoogleAnalytics.pm
Criterion Covered Total %
branch 44 60 73.3


line true false branch
38 1 1 unless my(@ua_args) = $self->_authorize_ua_args
40 0 1 if ($cb) { }
45 0 1 if $err
54 2 0 unless my(@ua_args) = $self->_authorize_ua_args
62 0 3 ref $query eq 'ARRAY' ? :
65 1 2 if ($cb) { }
72 0 1 ref $cb ? :
74 0 0 ref $cb ? :
77 0 1 ref $cb ? :
83 1 1 if $err
116 0 2 @_ % 2 ? :
119 0 2 if $file
123 1 1 if $ENV{'TEST_MOJO_GA_BATCH_GET_DIR'}
134 1 0 unless $server->app
141 2 0 unless $mock_r->lookup($name)
154 3 1 if $prev->{'exp'} and $time < $prev->{'exp'}
178 2 1 if -r $file
193 0 1 if ($err) { }
217 0 3 $as_list ? :
221 1 2 if ($err)
225 0 3 $as_list ? :
231 5 1 unless delete $query{'filters'}
235 3 5 if ($group_op->[0] eq 'metric') { }
236 0 3 $not ? :
245 1 4 $not ? :
255 5 1 unless delete $query{'order_by'}
261 2 4 if (my $d = delete $query{'interval'})
266 1 5 if $query{'dimensions'} and not ref $query{'dimensions'}
268 1 5 if $query{'metrics'} and not ref $query{'metrics'}
269 1 5 if exists $query{'rows'}