| blib/lib/Net/Hadoop/WebHDFS.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 12 | 49 | 24.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 252 | 2 | 1 | 5 | $$res{'code'} == 200 and $$res{'content_type'} =~ m[^application/json] |
| 290 | 0 | 0 | 0 | $$self{'httpfs_mode'} and defined $payload |
| 298 | 0 | 0 | 0 | $$res{'code'} >= 300 and $$res{'code'} <= 399 |
| 0 | 0 | 0 | $$res{'code'} >= 300 and $$res{'code'} <= 399 and $$res{'location'} | |
| 337 | 0 | 0 | 0 | $code >= 200 and $code <= 299 |
| 338 | 0 | 0 | 0 | $code >= 300 and $code <= 399 |
| line | l | !l | condition |
|---|---|---|---|
| 18 | 0 | 5 | $opts{'host'} || 'localhost' |
| 0 | 5 | $opts{'port'} || 50070 | |
| 0 | 5 | $opts{'standby_port'} || $opts{'port'} || 50070 | |
| 0 | 5 | $opts{'httpfs_mode'} || 0 | |
| 0 | 5 | $opts{'useragent'} || 'Furl Net::Hadoop::WebHDFS (perl)' | |
| 0 | 5 | $opts{'timeout'} || 10 | |
| 242 | 0 | 0 | $OPT_TABLE{$op} || [] |
| 340 | 0 | 0 | $$res{'body'} || 'Response body is empty...' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 188 | 0 | 0 | 0 | defined $options{'owner'} or defined $options{'group'} |
| 220 | 0 | 0 | 0 | defined $options{'modificationtime'} or defined $options{'accesstime'} |
| 252 | 1 | 3 | 1 | not defined $attr or &JSON::XS::decode_json($$res{'body'})->{$attr} |
| 288 | 0 | 0 | 0 | $$self{'httpfs_mode'} or not $REDIRECTED_OPERATIONS{$op} |
| 347 | 0 | 0 | 0 | $$self{'httpfs_mode'} or not defined $$self{'standby_host'} |