Branch Coverage

blib/lib/Hadoop/HDFS/Command.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
55 0 0 XXX ? :
58 0 0 unless $self->can($method)
81 0 0 if ($cb)
82 0 0 unless XXX
83 0 0 if (defined wantarray)
98 0 0 unless @response
100 0 0 if ($response[0] and $response[0] =~ / \A Found \s+ [0-9] /msx)
111 0 0 if ($arg->{'h'}) { }
112 0 0 if ($rest[0] eq '0' or not $rest[1] =~ / [a-zA-Z_] /msx) { }
124 0 0 $mode =~ / \A [d] /msx ? :
126 0 0 $is_dir ? :
137 0 0 if ($want_epoch)
146 0 0 unless (eval { do { $record{'epoch'} = $strp->parse_datetime($date)->epoch; 1 } })
155 0 0 if (@rest)
162 0 0 if ($cb)
166 0 0 unless (&$cb(\%record))
176 0 0 if $cb
199 0 0 unless my(@rv) = $self->_capture($options, $self->cmd_hdfs, ('dfs', '-du'), map({'-' . $_;} grep({$arg->{$_};} @flags)), @{$paths;})
205 0 0 @val ? :
280 0 0 if ($paths->[0] and $paths->[0] eq '\\-')
285 0 0 $options->{'stdin'} ? :
0 0 if (@{$paths;} < ($options->{'stdin'} ? 1 : 2))
293 0 0 $_ eq '-' ? :
295 0 0 $options->{'stdin'} ? :
315 0 0 unless eval { do { $self->_capture($options, $self->cmd_hdfs, ('dfs', '-test'), map({'-' . $_;} grep({$arg->{$_};} @flags)), @{$paths;}); return 1 } }
442 0 0 $_ eq '-' ? :
448 0 0 XXX ? :
0 0 unless &Getopt::Long::GetOptionsFromArray(\@params, \my %arg, map({XXX ? @{$_;} : ();} $flags, $opt))
454 0 0 if ($conf->{'require_params'} and not @params)
563 0 0 unless $self->enable_log