blib/lib/AnyEvent/HTTP/MXHR.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 16 | 50.0 |
line | true | false | branch |
---|---|---|---|
26 | 1 | 0 | if ($$headers{'content-type'} =~ m[^multipart/mixed\s*;\s*boundary="([^"]+)"]) { } |
38 | 0 | 1 | unless ($handle) |
41 | 0 | 0 | if $on_error |
50 | 0 | 11 | unless %state |
52 | 0 | 11 | unless ($data =~ s/(?:^|\r?\n)--$state{'boundary'}\n?$//) |
54 | 0 | 0 | if ($$handle{'on_error'}) |
60 | 1 | 10 | unless ($data =~ s/^(.+?)\015?\012\015?\012//) |
73 | 1 | 9 | unless (eval { do { &$cb($data, \%headers, $handle) } }) |