Branch Coverage

blib/lib/NBU/Media.pm
Criterion Covered Total %
branch 0 230 0.0


line true false branch
102 0 0 if (@_)
106 0 0 if (exists $mediaList{$mediaID}) { }
114 0 0 if (@_) { }
149 0 0 if (defined(my $EMMserver = $ms->EMMserver)) { }
191 0 0 if (defined $volume) { }
192 0 0 if ('NBU'->debug)
206 0 0 unless (exists $mediaCodes{$mediaCode})
213 0 0 $volumeGroup eq '---' ? :
219 0 0 unless $offsiteLocation eq '-'
220 0 0 unless $offsiteSlot eq '-' or $offsiteSlot == 0
221 0 0 unless $offsiteSessionID eq '-' or $offsiteSessionID == 0
224 0 0 if defined $rd
229 0 0 if ($updateRobot and $robotType ne 'NONE')
231 0 0 unless (defined($robot = 'NBU::Robot'->byID($robotNumber)))
248 0 0 if (/^Server Host = ([\S]+)[\s]*$/)
253 0 0 if (/^media_id = ([A-Z0-9]+), partner_id.*/)
254 0 0 if ($volume)
259 0 0 unless (defined $volume)
260 0 0 if 'NBU'->debug
271 0 0 if (/^density = ([\S]+) \(([\d]+)\)/)
275 0 0 if (/^allocated = .* \(([0-9]+)\)/)
279 0 0 if (/^last_written = .* \(([0-9]+)\)/)
283 0 0 if (/^expiration = .* \(([0-9]+)\)/)
287 0 0 if (/^last_read = .* \(([0-9]+)\)/)
292 0 0 if (/retention_level = ([\d]+), num_restores = ([\d]+)/)
298 0 0 if (/^kbytes = ([\d]+), nimages = ([\d]+), vimages = ([\d]+)/)
305 0 0 if (/^status = 0x([0-9A-Fa-f]+)/)
309 0 0 if $d =~ /[A-F]/
317 0 0 if (/^res1 = /)
321 0 0 if (/^vmpool = /)
325 0 0 if (/^[\s]*$/)
339 0 0 if (open PIPE, "<$mediaErrors") { }
0 0 elsif ('NBU'->debug) { }
348 0 0 if ($csv->parse($_))
351 0 0 if ($volume)
386 0 0 if (@_)
395 0 0 if (@_)
404 0 0 if (@_)
409 0 0 $self->removable ? :
415 0 0 if (@_)
426 0 0 if (@_)
427 0 0 if (my $oldBarcode = $$self{'EVSN'})
431 0 0 if (my $barcode = shift())
448 0 0 if (@_)
451 0 0 if ((my $oldPool = $$self{'POOL'}) != $newPool)
467 0 0 if (@_) { }
471 0 0 if (defined $group) { }
477 0 0 if ($update)
479 0 0 defined $group ? :
487 0 0 unless defined $filled
495 0 0 if (@_)
507 0 0 unless (defined $$self{'ERRORHIST'})
522 0 0 if ($$self{'ERRORCOUNT'} > 0) { }
532 0 0 unless (defined $$self{'ERRORHIST'})
565 0 0 if (@_ and $self->cleaningTape)
576 0 0 if ($self->cleaningTape) { }
587 0 0 if (@_)
588 0 0 if (@_ > 1) { }
602 0 0 if (@_)
603 0 0 if (@_ > 1) { }
619 0 0 if (my $volume = $barcodeList{$barcode})
634 0 0 if (my $volume = $mediaList{$mediaID})
649 0 0 if (@_)
668 0 0 if (@_)
678 0 0 if (@_)
688 0 0 if (@_)
698 0 0 if (@_)
707 0 0 if (@_)
725 0 0 if (my $mount = $self->mount)
760 0 0 if (@_)
769 0 0 if (@_)
779 0 0 if (@_)
789 0 0 if (@_)
804 0 0 if (@_)
814 0 0 if (@_)
824 0 0 if (@_)
838 0 0 $self->allocated ? :
844 0 0 if ($self->allocated and not $$self{'STATUS'} & 1)
858 0 0 if ($self->allocated and $$self{'STATUS'} & 1)
872 0 0 $self->allocated ? :
878 0 0 if ($self->allocated and $$self{'STATUS'} & 2)
899 0 0 defined $$self{'STATUS'} ? :
905 0 0 defined $$self{'STATUS'} ? :
911 0 0 defined $$self{'STATUS'} ? :
917 0 0 defined $$self{'STATUS'} ? :
923 0 0 if (@_)
927 0 0 if (defined $offsiteSessionID) { }
933 0 0 if ($update)
935 0 0 defined $offsiteSessionID ? :
948 0 0 if (@_)
952 0 0 if (defined $offsiteReturnDate) { }
958 0 0 if ($update)
960 0 0 defined $offsiteReturnDate ? :
973 0 0 if (@_)
977 0 0 if (defined $offsiteSentDate) { }
983 0 0 if ($update)
985 0 0 defined $offsiteSentDate ? :
998 0 0 if (@_)
1002 0 0 if (defined $offsiteLocation) { }
1008 0 0 if ($update)
1010 0 0 defined $offsiteLocation ? :
1023 0 0 if (@_)
1027 0 0 if (defined $offsiteSlot) { }
1033 0 0 if ($update)
1035 0 0 defined $offsiteSlot ? :
1050 0 0 defined $$self{'STATUS'} ? :
1075 0 0 $self->full ? :
1081 0 0 if ($self->robot) { }
1096 0 0 defined $$self{'REMOVABLE'} ? :
1108 0 0 unless defined $$self{'TOC'}
1114 0 0 unless $self->removable
1120 0 0 unless defined $$toc[$index]
1131 0 0 unless defined $$self{'TOC'}
1133 0 0 if (not $$self{'MMLOADED'} or $self->allocated and $self->expires > time)
1142 0 0 unless (defined $$self{'TOC'})