Condition Coverage

blib/lib/Mojo/Message.pm
Criterion Covered Total %
condition 45 56 80.3


and 3 conditions

line !l l&&!r l&&r condition
163 51 2603 6 $max and $max < $self->{'raw_size'}
268 79 34 38 $upload and not defined $filename
34 55 24 not $upload and defined $filename

or 2 conditions

line l !l condition
42 76 238 $self->headers->content_type // ""
128 3647 57 +(shift())->{'state'} // ""
158 2619 41 $self->{'state'} // ""
243 208 500 $self->{$method}{$name} // []

or 3 conditions

line l !l&&r !l&&!r condition
39 4 310 0 $self->content->charset || $self->default_charset
68 56 75 0 $self->{'dom'} ||= "Mojo::DOM"->new($self->text)
97 21 24 1864 $content->is_chunked or $headers->content_length
110 12 1127 1843 not defined $chunk or length $chunk
135 16 56 2 $self->{'json'} //= j($self->body)
159 2544 20 96 $state eq "content" or $state eq "finished"
187 575 95 0 $self->content->charset || $self->default_charset
188 668 2 0 decode($charset, $body) // $body
255 1 60 0 $content->charset || $self->default_charset
268 38 39 74 $upload and not defined $filename or not $upload and defined $filename
274 87 0 0 decode($charset, $name) // $name
275 32 0 0 decode($charset, $filename) // $filename
276 54 0 0 decode($charset, $part) // $part