lib/HTTP/Promise/Body/Form/Data.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 29 | 24.1 |
line | l | !l | condition |
---|---|---|---|
114 | 0 | 0 | defined $order && scalar @$order |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
148 | 4 | 0 | 0 | $self->_is_a($body, "HTTP::Promise::Body::File") and not $cd->filename |
line | l | !l | condition |
---|---|---|---|
100 | 0 | 0 | 'HTTP::Promise::Body::Form'->new($hash) || (return $self->pass_error('HTTP::Promise::Body::Form'->error)) |
156 | 4 | 0 | 'HTTP::Promise::Entity'->new('headers', $headers, 'body', $body) || (return $self->pass_error('HTTP::Promise::Entity'->error)) |
169 | 0 | 0 | &$process($n, $v2) || (return $self->pass_error) |
177 | 4 | 0 | &$process($n, $v) || (return $self->pass_error) |
190 | 4 | 0 | 'HTTP::Promise::Body::Form::Field'->new(@_) || (return $self->pass_error('HTTP::Promise::Body::Form::Field'->error)) |
200 | 0 | 0 | $s->open(@_) || (return $self->pass_error($s->error)) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
43 | 1 | 0 | 0 | $opts->{'boundary'} ||= "Data::UUID"->new->create_str |
44 | 0 | 1 | 0 | $opts->{'eol'} || $HTTP::Promise::Body::Form::Data::CRLF |
127 | 4 | 0 | 0 | $v->headers || 'HTTP::Promise::Headers'->new |
212 | 0 | 0 | 0 | $fh ||= select |