Branch Coverage

blib/lib/WebService/GarminConnect.pm
Criterion Covered Total %
branch 2 40 5.0


line true false branch
72 3 3 unless defined $options{$required_option}
86 0 0 if defined $self->{'is_logged_in'}
101 0 0 unless $response->is_success
116 0 0 unless $response->is_success
120 0 0 if ($response->decoded_content =~ /name="_csrf"\s+value="(.+)"/) { }
133 0 0 unless $response->is_success
136 0 0 if ($response->decoded_content =~ m[(.+)]) { }
141 0 0 if ($title ne "Success")
145 0 0 if ($response->decoded_content =~ /embed\?ticket=([^"]+)"/) { }
165 0 0 unless $response->is_success
169 0 0 unless (defined $response_data{$key})
178 0 0 unless $response->is_success
181 0 0 unless (defined $response_data->{'access_token'})
234 0 0 if (defined $opts{'pagesize'})
235 0 0 if ($opts{'pagesize'} > 0 and $opts{'pagesize'} < 50)
241 0 0 if (defined $opts{'limit'})
242 0 0 if ($opts{'limit'} < $pagesize)
261 0 0 unless $response->is_success
269 0 0 if (defined $opts{'limit'}) { }
271 0 0 if (@activities < $opts{'limit'}) { }