Branch Coverage

blib/lib/NBU/Robot.pm
Criterion Covered Total %
branch 0 70 0.0


line true false branch
49 0 0 if (@_)
53 0 0 if ($type =~ /^[\d]+$/) { }
54 0 0 if (not exists $robotTypes{$type} or $type == 0) { }
62 0 0 if $type eq '-'
65 0 0 if ($farm[$id]) { }
93 0 0 if (not defined $self->host) { }
103 0 0 if ($self->host->NBUVersion eq '3.2.0') { }
0 0 elsif ($self->host->NBUVersion eq '3.4.0' or $self->host->NBUVersion eq '4.5.0' or $self->host->NBUVersion eq '5.1.0' or $self->host->NBUVersion eq '6.5.0') { }
105 0 0 if (/^Slot = [\s]*([\d]+), Barcode = ([\S]+)$/) { }
0 0 elsif (/^Slot = [\s]*([\d]+), /) { }
106 0 0 if (defined(my $volume = 'NBU::Media'->byBarcode($2))) { }
130 0 0 if /^===/
133 0 0 if (/^[\s]*([\d]+)[\s]+[\S]+[\s]+([\S]+)/) { }
0 0 elsif (/^[\s]*([\d]+)[\s]+No/) { }
134 0 0 if (defined(my $volume = 'NBU::Media'->byBarcode($2))) { }
158 0 0 defined $lastSlot ? :
177 0 0 unless defined $$self{'DETAILED'}
178 0 0 if (@_)
187 0 0 unless defined $$self{'DETAILED'}
188 0 0 if (@_)
197 0 0 unless defined $$self{'DETAILED'}
198 0 0 if (@_)
231 0 0 if (@_)
243 0 0 if (exists $$slotList{$position}) { }
244 0 0 if ($$slotList{$position} != $volume) { }
261 0 0 if (exists $$slotList{$position})
277 0 0 unless exists $$slotList{$s}
288 0 0 if (@_)
298 0 0 unless (defined $$self{'CAPACITY'})
313 0 0 if (my $lastSlot = $self->capacity)
341 0 0 defined $importCAP && $importCAP ? :
359 0 0 unless (defined $server)
365 0 0 unless /VMGLOB... robot /
374 0 0 unless $controlHostName eq '-'
376 0 0 if (my $robot = 'NBU::Robot'->byID($robotNumber))