Condition Coverage

blib/lib/OAuth/Lite/Consumer.pm
Criterion Covered Total %
condition 32 106 30.1


and 3 conditions

line !l l&&!r l&&r condition
413 0 0 0 $resp and $resp->token
0 0 0 $resp and $resp->token and $resp->token->callback_confirmed
460 0 0 0 $token and $token->callback_confirmed
675 1 1 0 not $is_send_data_method and $auth_method eq 'post_body'
679 0 0 0 $is_send_data_method and not $content
704 1 0 0 $is_send_data_method and not $content
935 0 0 0 $authenticate and $authenticate =~ /^\s*OAuth/
1028 10 0 0 $$params{'oauth_signature_method'} eq 'PLAINTEXT' and not lc($url) =~ /^https/

or 2 conditions

line l !l condition
301 7 1 $args{'consumer_key'} || ''
302 7 1 $args{'consumer_secret'} || ''
303 1 7 $args{'http_method'} || 'POST'
304 1 7 $args{'auth_method'} || 'auth_header'
472 0 0 delete $args{'realm'} || $$self{'realm'} || ''
473 0 0 delete $args{'callback_url'} || $$self{'callback_url'} || 'oob'
533 0 0 $args{'realm'} || $$self{'realm'} || ''
536 0 0 $args{'params'} || {}
600 0 0 $args{'realm'} || $$self{'realm'} || ''
641 2 0 $args{'params'} || {}
642 0 2 $args{'realm'} || $$self{'realm'} || $self->find_realm_from_last_response || ''
652 3 4 $hash{$key} ||= []
722 0 1 &bytes::length($content) || 0
832 0 0 $args ||= {}
861 0 0 $args ||= {}
892 0 0 $args ||= {}
921 0 0 $args ||= {}
965 2 0 $$args{'extra'} || {}
967 0 2 $$args{'realm'} || ''
978 2 2 $extra ||= {}
1012 6 4 $extra ||= {}
1013 9 1 $self->consumer_key || ''
1026 9 1 $self->consumer_secret || ''

or 3 conditions

line l !l&&r !l&&!r condition
384 0 5 0 $args{'url'} ||= $self->authorization_url
412 0 0 0 $res->decoded_content || $res->content
459 0 0 0 $res->decoded_content || $res->content
468 0 0 0 $args{'url'} ||= $self->request_token_url
530 0 0 0 $args{'url'} ||= $self->access_token_url
547 0 0 0 $res->decoded_content || $res->content
595 0 0 0 $args{'url'} ||= $self->access_token_url
612 0 0 0 $res->decoded_content || $res->content
637 1 1 0 $args{'method'} || $$self{'http_method'}
780 0 0 0 $args{'token'} ||= $self->access_token
1014 0 10 0 $$self{'_timestamp'} || time
1015 0 10 0 $$self{'_nonce'} || gen_random_key()