Branch Coverage

blib/lib/Reddit/Client/Request.pm
Criterion Covered Total %
branch 15 48 31.2


line true false branch
50 1 0 if (defined $self->{'query'})
51 0 1 unless ref $self->{'query'} eq "HASH"
55 1 0 if (defined $self->{'post_data'})
56 0 1 unless ref $self->{'post_data'} eq "HASH"
66 1 7 unless my $param = shift()
76 0 0 if $self->{'tokentype'} and $self->{'token'}
78 3 0 if ($self->{'method'} eq 'POST') { }
0 0 elsif ($self->{'method'} eq 'DELETE') { }
0 0 elsif ($self->{'method'} eq 'PUT') { }
80 3 0 if $self->{'modhash'}
81 3 0 if $self->{'modhash'}
90 0 0 if $self->{'modhash'}
91 0 0 if $self->{'modhash'}
113 0 2 if ($self->{'print_request'}) { }
0 2 elsif ($self->{'print_response'}) { }
122 1 1 if ($res->is_success) { }
127 0 1 if ($self->{'print_request_on_error'} and not $self->{'print_request'}) { }
0 1 elsif ($self->{'request_errors'}) { }
135 0 0 if ($success) { }
169 0 0 if ($param{'auth_type'} eq 'script') { }
0 0 elsif ($param{'auth_type'} eq 'webapp') { }
179 0 0 if ($res->is_success) { }
221 0 0 if ($data{'print_request'})
226 0 0 if ($result->is_success) { }