Branch Coverage

blib/lib/Plack/Middleware/Auth/OAuth.pm
Criterion Covered Total %
branch 19 26 73.0


line true false branch
27 7 1 unless ($self->secret_resolver_cb)
28 0 7 unless $self->consumer_key
29 0 7 unless $self->consumer_secret
33 0 32 if ($self->$cb_method and ref $self->$cb_method ne 'CODE')
43 6 8 $self->validate($env) || $self->validate_only ? :
49 6 8 unless my $auth = $$env{'HTTP_AUTHORIZATION'}
56 2 6 if ($self->secret_resolver_cb) { }
60 0 6 unless $$params{'oauth_consumer_key'} eq $self->consumer_key
63 0 8 if $self->check_timestamp_cb and not $self->check_timestamp_cb->($params)
64 1 7 if $self->check_nonce_cb and not $self->check_nonce_cb->($params)
67 0 7 $self->validate_post ? :
75 0 7 unless $util->validate_params($params)
89 1 7 if ($self->unauthorized_cb) { }