Branch Coverage

blib/lib/Twitter/API.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
152 29 24 wantarray ? :
160 59 53 if /^-(.+)/u
167 38 40 if ($c->http_method eq 'GET')
173 6 72 if $c->http_method eq 'POST' and not !grep(XXX, values %{$c->args;})
189 12 66 if $c->has_option('accept')
213 10 29 if ($c->get_option('multipart_form_data'))
217 5 24 if ($c->has_option('to_json'))
231 6 24 XXX ? :
257 6 33 if (my $encoded = $self->encode_args_string($c->args))
279 12 72 if (my $opt = $c->get_option('oauth_args')) { }
309 20 36 if ($res->content_type eq 'application/json') { }
24 12 elsif (($res->content_length // 0) == 0) { }
12 0 elsif (($c->get_option('accept') // '') eq 'application/x-www-form-urlencoded') { }
338 51 5 if defined $data and $res->is_success
349 0 9 if XXX
392 26 111 if $_[-1] =~ m[^https?://]u
395 63 48 if $ext
404 0 4 @_ == 1 && XXX ? :
417 0 26 @_ == 1 && XXX ? :
429 6 2 @_ == 1 && XXX ? :
443 0 3 @_ == 1 && XXX ? :