Condition Coverage

blib/lib/WWW/Gitea/Role/HTTP.pm
Criterion Covered Total %
condition 3 19 15.7


and 3 conditions

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*[\{\[]/

or 2 conditions

line l !l condition
23 0 0 $WWW::Gitea::VERSION // "dev"
57 0 0 $args{'content_type'} || 'application/json'

or 3 conditions

line l !l&&r !l&&!r condition
73 0 0 0 $data->{'message'} || $data->{'error'} || $res->status_line