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 2630 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 242 $self->headers->content_type // ""
128 3687 57 +(shift())->{'state'} // ""
158 2646 41 $self->{'state'} // ""
243 208 512 $self->{$method}{$name} // []

or 3 conditions

line l !l&&r !l&&!r condition
39 4 314 0 $self->content->charset || $self->default_charset
68 57 76 0 $self->{'dom'} ||= "Mojo::DOM"->new($self->text)
97 21 25 1887 $content->is_chunked or $headers->content_length
110 12 1139 1867 not defined $chunk or length $chunk
135 16 56 2 $self->{'json'} //= j($self->body)
159 2571 20 96 $state eq "content" or $state eq "finished"
187 583 96 0 $self->content->charset || $self->default_charset
188 677 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