| blib/lib/WWW/Gitea/Role/HTTP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 3 | 19 | 15.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 33 | 1 | 0 | 1 | defined $self->token and length $self->token |
| 0 | 0 | 1 | defined $self->username and defined $self->password | |
| 67 | 0 | 0 | 0 | defined $body and length $body |
| 0 | 0 | 0 | defined $body and length $body and $body =~ /\A\s*[\{\[]/ |
| line | l | !l | condition |
|---|---|---|---|
| 23 | 0 | 0 | $WWW::Gitea::VERSION // "dev" |
| 57 | 0 | 0 | $args{'content_type'} || 'application/json' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 73 | 0 | 0 | 0 | $data->{'message'} || $data->{'error'} || $res->status_line |