Branch Coverage

blib/lib/Linux/LVM.pm
Criterion Covered Total %
branch 0 162 0.0


line true false branch
64 0 0 if @_
100 0 0 if ($_ eq 'pvols') { }
0 0 elsif ($_ eq 'lvols') { }
179 0 0 if $units
180 0 0 if (-e '/usr/sbin/vgdisplay') { }
183 0 0 unless (-e '/sbin/vgdisplay')
191 0 0 if /^$/
194 0 0 if (/VG Name\s+(\S+)/) { }
0 0 elsif (/VG Access\s+(\S+)/) { }
0 0 elsif (/VG Status\s+(.+)/) { }
0 0 elsif (/VG #\s+(\S+)/) { }
0 0 elsif (/MAX LV Size\s+(\S+) (\S+)/) { }
0 0 elsif (/MAX LV\s+(\S+)/) { }
0 0 elsif (/Cur LV\s+(\S+)/) { }
0 0 elsif (/Open LV\s+(\S+)/) { }
0 0 elsif (/Max PV\s+(\S+)/) { }
0 0 elsif (/Cur PV\s+(\S+)/) { }
0 0 elsif (/Act PV\s+(\S+)/) { }
0 0 elsif (/VG Size\s+(\S+) (\S+)/) { }
0 0 elsif (/PE Size\s+(\S+) (\S+)/) { }
0 0 elsif (m[Total PE / Free PE\s+(\S+) / (\S+)]m) { }
0 0 elsif (/Total PE\s+(\S+)/) { }
0 0 elsif (m[Alloc PE / Size\s+(\S+) / (\S+) (\S+)]) { }
0 0 elsif (m[Free PE / Size\s+(\S+) / (\S+) (\S+)]) { }
0 0 elsif (/VG UUID\s+(\S+)/) { }
0 0 elsif (/LV Name\s+(\S+)/) { }
299 0 0 if (/LV Path\s+(\S+)/) { }
0 0 elsif (/LV UUID\s+(\S+)/) { }
0 0 elsif (/Segments\s+(\S+)/) { }
0 0 elsif (/LV Size\s+(\S+) (\S+)/) { }
0 0 elsif (/LV Write Access\s+(\S+)/) { }
0 0 elsif (/LV Status\s+(.+)/) { }
0 0 elsif (/Current LE\s+(\S+)/) { }
0 0 elsif (/Allocated LE\s+(\S+)/) { }
0 0 elsif (/Allocation\s+(.+)/) { }
0 0 elsif (/LV #\s+(\S+)/) { }
0 0 elsif (/# open\s+(\S+)/) { }
0 0 elsif (/Block device\s+(\S+)/) { }
0 0 elsif (/Read ahead sectors\s+(\S+)/) { }
0 0 elsif (/Allocated to snapshot\s+(\S+)%/) { }
0 0 elsif (/COW-table size\s+([0-9\.]+)\s+(\S+)/) { }
0 0 elsif (/Mirrored volumes\s+(.+)/) { }
0 0 elsif (/PV Name\s+(\S+)/) { }
0 0 elsif (/PV Status\s+(.+)/) { }
0 0 elsif (/PV UUID\s+(.+)/) { }
414 0 0 unless (-e "$pvname")
417 0 0 if $units
419 0 0 if (-e '/usr/sbin/pvdisplay') { }
422 0 0 unless (-e '/sbin/pvdisplay')
429 0 0 if (/PV Name\s+(\S+)/)
434 0 0 if (/VG Name\s+(\S+)/)
439 0 0 if (/PV Size\s+(\S+) (\S+)/)
445 0 0 if (/PV\#\s+(\S+)/)
450 0 0 if (/PV Status\s+(.+)/)
455 0 0 if (/Allocatable\s+(.+)/)
460 0 0 if (/Cur LV\s+(\S+)/)
465 0 0 if (/PE Size \((\S+)\)\s+(\S+)/)
471 0 0 if (/Total PE\s+(\S+)/)
476 0 0 if (/Free PE\s+(\S+)/)
481 0 0 if (/Allocated PE\s+(\S+)/)
486 0 0 if (/PV UUID\s+(\S+)/)
509 0 0 unless (-e "$lvname")
512 0 0 if $units
513 0 0 if (-e '/usr/sbin/vgdisplay') { }
516 0 0 unless (-e '/sbin/vgdisplay')
523 0 0 if (/LV Name\s+(\S+)/)
530 0 0 if (/LV Path\s+(\S+)/)
535 0 0 if (/VG Name\s+(\S+)/)
540 0 0 if (/LV UUID\s+(\S+)/)
545 0 0 if (/LV Write Access\s+(.+)/)
550 0 0 if (/LV Status\s+(.+)/)
555 0 0 if (/LV \#\s+(\S+)/)
560 0 0 if (/\# open\s+(\S+)/)
565 0 0 if (/LV Size\s+(\S+) (\S+)/)
571 0 0 if (/Current LE\s+(\S+)/)
576 0 0 if (/Allocated LE\s+(\S+)/)
581 0 0 if (/Allocation\s+(.+)/)
586 0 0 if (/Read ahead sectors\s+(\S+)/)
591 0 0 if (/Block device\s+(\S+)/)
595 0 0 if (/Allocated to snapshot\s+(\S+)%/) { }
0 0 elsif (/COW-table size\s+([0-9\.]+)\s+(\S+)/) { }