Condition Coverage

blib/lib/Mojo/GoogleAnalytics.pm
Criterion Covered Total %
condition 13 50 26.0


and 3 conditions

line !l l&&!r l&&r condition
43 0 0 0 $prev->{'exp'} and $time < $prev->{'exp'}
218 5 0 1 $query{'dimensions'} and not ref $query{'dimensions'}
220 5 0 1 $query{'metrics'} and not ref $query{'metrics'}

or 2 conditions

line l !l condition
11 0 3 $ENV{'MOJO_GA_DEBUG'} || 0
133 0 1 $_[0]{'token_uri'} ||= 'https://accounts.google.com/o/oauth2/token'
134 0 1 $_[0]{'auth_scope'} ||= 'https://www.googleapis.com/auth/analytics.readonly'
135 0 1 $_[0]{'batch_get_uri'} ||= 'https://analyticsreporting.googleapis.com/v4/reports:batchGet'
147 0 0 $res->{'error_description'} || $err->{'message'} || 'Unknown error'
0 0 $err->{'code'} || 0
156 0 0 $err // ''
163 0 0 $tx->res->json || {}
174 0 0 $err->{'message'} || 'Unknown error'
0 0 $err->{'code'} || 0
177 0 0 $err || ''
185 8 0 $QUERY_TRANSLATOR{$op} || ['dimension', $op]
214 1 1 $d->[1] || '1daysAgo'

or 3 conditions

line l !l&&r !l&&!r condition
113 0 0 0 $self->{$attr} ||= $attrs->{$attr}
164 0 0 0 $res->{'error'} || $tx->error
165 0 0 0 $res->{'reports'} || ($as_list ? $query : [{}])
209 3 0 0 $QUERY_SORT_ORDER{$order or 'x'} || $QUERY_SORT_ORDER{'x'}
222 0 6 0 $query{'viewId'} ||= $self->view_id