Condition Coverage

blib/lib/WWW/Gitea/Role/HTTP.pm
Criterion Covered Total %
condition 7 23 30.4


and 3 conditions

line !l l&&!r l&&r condition
34 1 0 7 defined $self->token and length $self->token
0 0 1 defined $self->username and defined $self->password
83 0 0 6 defined $body and length $body
0 0 6 defined $body and length $body and $body =~ /\A\s*[\{\[]/

or 2 conditions

line l !l condition
24 0 0 $WWW::Gitea::VERSION // "dev"
52 2 0 $up->{'field'} || 'attachment'
55 1 0 $up->{'content'} // ""
73 0 0 $args{'content_type'} || 'application/json'

or 3 conditions

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