Condition Coverage

blib/lib/Mojo/GoogleAnalytics.pm
Criterion Covered Total %
condition 31 58 53.4


and 3 conditions

line !l l&&!r l&&r condition
157 2 0 2 $prev->{'exp'} and $time < $prev->{'exp'}
269 5 0 1 $query{'dimensions'} and not ref $query{'dimensions'}
271 5 0 1 $query{'metrics'} and not ref $query{'metrics'}

or 2 conditions

line l !l condition
12 0 5 $ENV{'MOJO_GA_DEBUG'} || 0
123 0 2 $self->{'token_uri'} ||= 'https://accounts.google.com/o/oauth2/token'
124 0 2 $self->{'auth_scope'} ||= 'https://www.googleapis.com/auth/analytics.readonly'
125 0 2 $self->{'batch_get_uri'} ||= 'https://analyticsreporting.googleapis.com/v4/reports:batchGet'
144 0 2 $args->{$name} || sub { $self->$cb(@_); }
198 1 0 $res->{'error_description'} || $err->{'message'} || 'Unknown error'
1 0 $err->{'code'} || 0
207 1 1 $err // ''
214 3 0 $tx->res->json || {}
225 1 0 $err->{'message'} || 'Unknown error'
0 1 $err->{'code'} || 0
228 1 2 $err || ''
236 8 0 $QUERY_TRANSLATOR{$op} || ['dimension', $op]
265 1 1 $d->[1] || '1daysAgo'

or 3 conditions

line l !l&&r !l&&!r condition
100 0 0 0 $self->{$attr} ||= $attrs->{$attr}
133 0 1 0 $args->{'batch_get_dir'} // $ENV{'TEST_MOJO_GA_BATCH_GET_DIR'}
1 0 0 ($args->{'batch_get_dir'} // $ENV{'TEST_MOJO_GA_BATCH_GET_DIR'}) // 'File::Spec'->tmpdir
215 1 0 2 $res->{'error'} || $tx->error
216 2 1 0 $res->{'reports'} || ($as_list ? $query : [{}])
260 3 0 0 $QUERY_SORT_ORDER{$order or 'x'} || $QUERY_SORT_ORDER{'x'}
273 0 6 0 $query{'viewId'} ||= $self->view_id