Condition Coverage

blib/lib/Mojo/WebService/Twitter.pm
Criterion Covered Total %
condition 18 71 25.3


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'}
323 0 0 0 &blessed($id) and $id->isa('Mojo::WebService::Twitter::Tweet')
367 0 0 0 defined $lat and defined $long
0 0 0 defined $lat and defined $long and defined $rad
418 0 0 3 defined $api_key and defined $api_secret
432 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 // {}
338 0 0 $tx->res->json->{'statuses'} // []
343 1 0 $tx->res->json->{'statuses'} // []
353 0 0 $tx->res->json->{'statuses'} // []
453 16 0 $key // ''
16 0 $value // ''

or 3 conditions

line l !l&&r !l&&!r condition
22 8 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')
439 1 0 0 shift() // croak('Access token is required for OAuth2 authentication')