Branch Coverage

blib/lib/JSAN/Shell.pm
Criterion Covered Total %
branch 6 92 6.5


line true false branch
82 1 0 unless ($self->{'config'}{'offline'})
84 0 1 unless (LWP::Online::online('http'))
90 0 1 if ($self->{'config'}{'offline'})
96 1 0 unless ($self->{'config'}{'mirror'})
105 0 1 if ('JSAN::Index'->self and $self->{'config'}{'mirror'}) { }
1 0 elsif (not 'JSAN::Index'->self) { }
129 0 0 unless $self->{'client'}
144 0 0 unless @_
167 0 0 unless length $cmd_line
169 0 0 if ($@) { }
189 0 0 unless ($cmd)
195 0 0 unless ($self->can($method))
226 0 0 $self->can($method) ? :
258 0 0 unless my $name = lc &_IDENTIFIER($params[0])
263 0 0 unless ($author)
314 0 0 unless ($dist)
368 0 0 unless ($library)
419 0 0 unless (@objects)
424 0 0 if (@objects == 1)
425 0 0 if ($objects[0]->isa('JSAN::Index::Author')) { }
0 0 elsif ($objects[0]->isa('JSAN::Index::Distribution')) { }
0 0 elsif ($objects[0]->isa('JSAN::Index::Release')) { }
477 0 0 unless (@params)
482 0 0 if (&_IDENTIFIER($name))
483 0 0 if $name eq 'verbose'
484 0 0 if $name eq 'offline'
485 0 0 if $name eq 'mirror'
486 0 0 if $name eq 'prefix'
495 0 0 if ($value =~ /^(?:y|yes|t|true|1|on)$/i) { }
0 0 elsif ($value =~ /^(?:n|no|f|false|0|off)$/i) { }
509 0 0 if ($value =~ /^(?:y|yes|t|true|1|on)$/i) { }
0 0 elsif ($value =~ /^(?:n|no|f|false|0|off)$/i) { }
537 0 0 unless (-d $value)
540 0 0 unless (-w $value)
564 0 0 unless ($library)
581 0 0 unless ($library)
586 0 0 unless ($self->prefix)
620 0 0 if length $_->name <= $max
646 0 0 $release->latest ? :
677 0 0 if length $_->name <= $max
705 0 0 if ($object->isa('JSAN::Index::Author')) { }
0 0 elsif ($object->isa('JSAN::Index::Distribution')) { }
0 0 elsif ($object->isa('JSAN::Index::Release')) { }
0 0 elsif ($object->isa('JSAN::Index::Library')) { }
744 0 0 $self->verbose ? :
0 0 $self->offline ? :