Branch Coverage

blib/lib/Net/OAuth/Simple.pm
Criterion Covered Total %
branch 3 72 4.1


line true false branch
22 0 2 unless ($@)
189 0 2 unless (defined $$self{'tokens'}{$param})
194 0 1 unless blessed($$self{'browser'}) and $$self{'browser'}->isa('LWP::UserAgent')
220 0 0 unless defined $$self{'tokens'}{$param} and length $$self{'tokens'}{$param}
234 0 0 if @_
245 0 0 if (@_)
249 0 0 unless $$self{'tokens'}
342 0 0 unless defined $self->$param
429 0 0 if @_
469 0 0 if @_
499 0 0 unless defined $params{'token'}
500 0 0 unless defined $params{'token_secret'}
502 0 0 if ($self->oauth_1_0a)
503 0 0 unless defined $params{'verifier'}
504 0 0 unless defined $params{'verifier'}
533 0 0 unless $self->access_token and $self->access_token_secret
594 0 0 if ($self->oauth_1_0a)
595 0 0 unless defined $params{'callback'}
596 0 0 unless defined $params{'callback'}
604 0 0 unless $request_token_response->is_success
616 0 0 if $self->oauth_1_0a and not $self->callback_confirmed
633 0 0 unless (defined $self->request_token)
651 0 0 unless $self->authorized
667 0 0 unless $self->authorized_general_token
700 0 0 $self->oauth_1_0a ? :
713 0 0 unless $request->verify
719 0 0 if ('GET' eq $method or 'PUT' eq $method) { }
728 0 0 unless $response->is_success
737 0 0 if ($$self{'return_undef_on_error'}) { }
773 0 0 unless -f $file
775 0 0 unless open my $fh, $file
778 0 0 if /^#/
779 0 0 if /^\s*$/
780 0 0 unless /=/
801 0 0 if length $key > $max
804 0 0 unless open my $fh, ">$file"