blib/lib/HTTP/Request/StreamingUpload.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 21 | 22 | 95.4 |
line | true | false | branch |
---|---|---|---|
13 | 3 | 7 | if ($headers) |
14 | 1 | 2 | if (ref $headers eq 'HASH') |
27 | 1 | 9 | if ($$args{'content'}) { } |
1 | 8 | elsif ($$args{'callback'} and ref $$args{'callback'} eq 'CODE') { } | |
3 | 5 | elsif ($$args{'path'} or $$args{'fh'}) { } | |
33 | 2 | 1 | if ($$args{'fh'}) { } |
36 | 0 | 1 | unless open $fh, '<', $$args{'path'} |
41 | 2 | 3 | unless $len |
51 | 3 | 1 | if ref ${$content_ref;} |
54 | 3 | 1 | if (ref $content_ref eq 'CODE') { } |
57 | 3 | 9 | unless defined $buf |