Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/HPUX/Drives.pm
Criterion Covered Total %
branch 6 26 23.0


line true false branch
13 0 0 if $params{'no_category'}{'drive'}
49 0 0 if $params{'type'} eq 'vxfs'
57 0 4 unless $handle
66 19 6 if ($line =~ /^(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+%)\s+(\S+)/)
76 3 3 if ($line =~ /^(\S+)\s/)
81 3 0 if ($line =~ /(\d+)\s+(\d+)\s+(\d+)\s+(\d+%)\s+(\S+)/)
114 0 0 $version == 7 ? :
0 0 $version == 6 ? :
0 0 $version == 5 ? :
120 0 0 unless ($offset)
126 0 0 unless open my $handle, '<:raw:bytes', $device
128 0 0 unless seek $handle, $offset, 0
131 0 0 unless read $handle, $raw, 4