| blib/lib/IO/Callback/HTTP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 14 | 30 | 46.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 54 | 4 | 0 | 1 | defined $$arg{'failure'} and not ref $$arg{'failure'} |
| 76 | 0 | 2 | 0 | &blessed($code) and $code->isa('URI') |
| 82 | 0 | 0 | 3 | &blessed($code) and $code->isa('HTTP::Request') |
| 115 | 0 | 1 | 0 | &blessed($code) and $code->isa('URI') |
| 121 | 0 | 0 | 2 | &blessed($code) and $code->isa('HTTP::Request') |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 29 | 3 | 2 | 0 | our $USER_AGENT ||= 'LWP::UserAgent'->new('agent', sprintf('%s/%s ', 'IO::Callback::HTTP', 'IO::Callback::HTTP'->VERSION)) |
| 76 | 1 | 0 | 2 | not ref $code or &blessed($code) and $code->isa('URI') |
| 84 | 0 | 3 | 0 | $args{'agent'} || USER_AGENT |
| 115 | 1 | 0 | 1 | not ref $code or &blessed($code) and $code->isa('URI') |
| 123 | 0 | 2 | 0 | $args{'agent'} || USER_AGENT |