Branch Coverage

blib/lib/WebService/GarminConnect.pm
Criterion Covered Total %
branch 2 52 3.8


line true false branch
77 3 3 unless defined $options{$required_option}
92 0 0 if defined $self->{'is_logged_in'}
100 0 0 unless (defined $cache_path)
102 0 0 unless -d $cache_path
104 0 0 unless -d $cache_path
111 0 0 if (open my $cache_fh, "<", $cache_path)
120 0 0 unless $@
131 0 0 unless $response->is_success
146 0 0 unless $response->is_success
150 0 0 if ($response->decoded_content =~ /name="_csrf"\s+value="(.+?)"/) { }
163 0 0 unless $response->is_success
166 0 0 if ($response->decoded_content =~ m[(.+)]) { }
171 0 0 if ($title ne "Success")
175 0 0 if ($response->decoded_content =~ /embed\?ticket=([^"]+)"/) { }
195 0 0 unless $response->is_success
199 0 0 unless (defined $response_data{$key})
208 0 0 unless $response->is_success
211 0 0 unless (defined $response_data->{'access_token'})
230 0 0 if (open my $cache_fh, ">", $cache_path)
258 0 0 unless $response->is_success
310 0 0 if (defined $opts{'pagesize'})
311 0 0 if ($opts{'pagesize'} > 0 and $opts{'pagesize'} < 50)
317 0 0 if (defined $opts{'limit'})
318 0 0 if ($opts{'limit'} < $pagesize)
330 0 0 if (defined $opts{'limit'}) { }
332 0 0 if (@activities < $opts{'limit'}) { }