Branch Coverage

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


line true false branch
62 0 0 XXX ? :
65 0 0 unless $self->can($method)
88 0 0 if ($cb)
89 0 0 unless XXX
90 0 0 if (defined wantarray)
105 0 0 unless @response
107 0 0 if ($response[0] and $response[0] =~ / \A Found \s+ [0-9] /msx)
118 0 0 if ($arg->{'h'}) { }
119 0 0 if ($rest[0] eq '0' or not $rest[1] =~ / [a-zA-Z_] /msx) { }
131 0 0 $mode =~ / \A [d] /msx ? :
133 0 0 $is_dir ? :
144 0 0 if ($want_epoch)
153 0 0 unless (eval {
162 0 0 if (@rest)
169 0 0 if ($cb)
173 0 0 unless (&$cb(\%record))
183 0 0 if $cb
206 0 0 unless my(@rv) = $self->_capture($options, $self->cmd_hdfs, ("dfs", "-du"), map({"-" . $_;} grep({$arg->{$_};} @flags)), @{$paths;})
212 0 0 @val ? :
287 0 0 if ($paths->[0] and $paths->[0] eq "\\-")
292 0 0 $options->{'stdin'} ? :
0 0 if (@{$paths;} < ($options->{'stdin'} ? 1 : 2))
300 0 0 $_ eq '-' ? :
302 0 0 $options->{'stdin'} ? :
322 0 0 unless eval {
458 0 0 if (my($match) = $line =~ / \A [#] \s+ (.*) \z /msx)
489 0 0 $_ eq 'set' ? :
521 0 0 $_ eq '-' ? :
527 0 0 XXX ? :
533 0 0 if ($self->trace_logs)
539 0 0 unless &Getopt::Long::GetOptionsFromArray(@getopt_args)
541 0 0 if ($conf->{'require_params'} and not @params)
545 0 0 if ($self->trace_logs)
654 0 0 unless $self->enable_log