| blib/lib/WWW/Gitea/Role/HTTP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 3 | 22 | 13.6 |
| line | true | false | branch |
|---|---|---|---|
| 33 | 1 | 1 | if (defined $self->token and length $self->token) { } |
| 1 | 0 | elsif (defined $self->username and defined $self->password) { } | |
| 47 | 0 | 0 | if $args{'query'} |
| 52 | 0 | 0 | unless $args{'headers'} |
| 56 | 0 | 0 | if (defined $args{'body'}) |
| 59 | 0 | 0 | ref $args{'body'} ? : |
| 67 | 0 | 0 | if (defined $body and length $body and $body =~ /\A\s*[\{\[]/) |
| 71 | 0 | 0 | unless ($res->is_success) |
| 73 | 0 | 0 | ref $data eq 'HASH' ? : |
| 80 | 0 | 0 | defined $data ? : |
| 87 | 0 | 0 | if $args{'query'} |