Condition Coverage

blib/lib/Twitter/API.pm
Criterion Covered Total %
condition 28 46 60.8


and 3 conditions

line !l l&&!r l&&r condition
173 39 33 6 $c->http_method eq 'POST' and not !grep(XXX, values %{$c->args;})
338 0 5 51 defined $data and $res->is_success
404 4 0 0 @_ == 1 && XXX
417 26 0 0 @_ == 1 && XXX
429 2 0 6 @_ == 1 && XXX
443 3 0 0 @_ == 1 && XXX

or 2 conditions

line l !l condition
135 48 30 shift() || {}
149 58 19 $self->send_request($c) // (return $c)
309 12 24 $res->content_length // 0
12 0 $c->get_option('accept') // ''
407 2 2 delete $args{'callback'} // 'oob'

or 3 conditions

line l !l&&r !l&&!r condition
181 0 0 0 delete $args->{$1} // croak("missing arg $1")
195 78 0 0 $self->can($prepare_method) || croak("unexpected HTTP method: $http_method")
286 8 63 1 $c->get_option('token') // $self->access_token
71 1 0 ($c->get_option('token') // $self->access_token) // croak('requires an oauth token')
289 8 63 0 $c->get_option('token_secret') // $self->access_token_secret
71 0 0 ($c->get_option('token_secret') // $self->access_token_secret) // croak('requires an oauth token secret')