Condition Coverage

blib/lib/Mojo/WebService/Twitter.pm
Criterion Covered Total %
condition 19 77 24.6


and 3 conditions

line !l l&&!r l&&r condition
27 0 0 0 defined $auth->{'oauth_token'} and defined $auth->{'oauth_token_secret'}
84 0 0 1 $params->{'oauth_callback_confirmed'} eq 'true' and defined $params->{'oauth_token'}
0 0 1 $params->{'oauth_callback_confirmed'} eq 'true' and defined $params->{'oauth_token'} and defined $params->{'oauth_token_secret'}
128 0 0 1 defined $params->{'oauth_token'} and defined $params->{'oauth_token_secret'}
366 0 0 0 &blessed($id) and $id->isa('Mojo::WebService::Twitter::Tweet')
410 0 0 0 defined $lat and defined $long
0 0 0 defined $lat and defined $long and defined $rad
461 0 0 3 defined $api_key and defined $api_secret
475 0 0 1 defined $api_key and defined $api_secret

or 2 conditions

line l !l condition
52 0 0 $self->_from_request_oauth($tx) // (return $self->$cb('OAuth callback was not confirmed'))
58 1 0 $self->_from_request_oauth($tx) // die("OAuth callback was not confirmed\n")
68 0 0 $self->_from_request_oauth($tx) // die("OAuth callback was not confirmed\n")
74 0 1 $url //= 'oob'
97 0 0 $self->_from_verify_oauth($tx) // (return $self->$cb('No OAuth token returned'))
103 1 0 $self->_from_verify_oauth($tx) // die("No OAuth token returned\n")
113 0 0 $self->_from_verify_oauth($tx) // die("No OAuth token returned\n")
140 0 0 $self->_from_request_oauth2($tx) // (return $self->$cb('No bearer token returned'))
146 1 0 $self->_from_request_oauth2($tx) // die("No bearer token returned\n")
156 0 0 $self->_from_request_oauth2($tx) // die("No bearer token returned\n")
169 1 0 $tx->res->json // {}
258 0 0 $tx->res->json // []
263 1 0 $tx->res->json // []
273 0 0 $tx->res->json // []
381 0 0 $tx->res->json->{'statuses'} // []
386 1 0 $tx->res->json->{'statuses'} // []
396 0 0 $tx->res->json->{'statuses'} // []
496 21 0 $key // ''
21 0 $value // ''

or 3 conditions

line l !l&&r !l&&!r condition
22 9 1 0 $self->{'authentication'} // croak('No authentication set')
119 1 0 0 delete $self->{'request_token_secrets'}{$request_token} // croak('Unknown request token')
0 1 0 $request_token_secret //= delete $self->{'request_token_secrets'}{$request_token} // croak('Unknown request token')
482 1 0 0 shift() // croak('Access token is required for OAuth2 authentication')