Condition Coverage

blib/lib/Net/Hadoop/WebHDFS.pm
Criterion Covered Total %
condition 12 70 17.1


and 3 conditions

line !l l&&!r l&&r condition
257 2 1 5 $res->{'code'} == 200 and $res->{'content_type'} =~ m[^application/json]
294 0 0 0 $self->{'httpfs_mode'} and defined $payload
302 0 0 0 $res->{'code'} >= 300 and $res->{'code'} <= 399
0 0 0 $res->{'code'} >= 300 and $res->{'code'} <= 399 and $res->{'location'}
353 0 0 0 $code >= 200 and $code <= 299
354 0 0 0 $code >= 300 and $code <= 399
407 0 0 0 @_ && ref $_[-1] eq 'HASH'
436 0 0 0 $re_ignore and $path
0 0 0 $re_ignore and $path and $path =~ /$re_ignore/

or 2 conditions

line l !l condition
30 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
0 5 $opts{'suppress_errors'} || 0
246 0 0 $OPT_TABLE{$op} || []
356 0 0 $res->{'body'} || 'Response body is empty...'
393 0 0 $@ || 'Zombie error'
444 0 0 $@ || 'Zombie error'

or 3 conditions

line l !l&&r !l&&!r condition
192 0 0 0 defined $options{'owner'} or defined $options{'group'}
224 0 0 0 defined $options{'modificationtime'} or defined $options{'accesstime'}
257 1 0 4 not defined $attr or &JSON::XS::decode_json($res->{'body'})->{$attr}
292 0 0 0 $self->{'httpfs_mode'} or not $REDIRECTED_OPERATIONS{$op}
363 0 0 0 $self->{'httpfs_mode'} or not defined $self->{'standby_host'}
387 0 0 0 shift() || croak('No HDFS path was specified')
405 0 0 0 shift() || croak('No file path specified')