Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Linux/Storages/Adaptec.pm
Criterion Covered Total %
branch 10 20 50.0


line true false branch
24 0 0 unless $device->{'MANUFACTURER'}
28 0 0 unless $device->{'MANUFACTURER'} eq 'Adaptec' or $device->{'MANUFACTURER'} eq 'Sun' or $device->{'MANUFACTURER'} eq 'ServeRA'
37 0 0 unless $info->{'TYPE'} =~ /disk/i
53 0 2 unless $params{'controller'}
56 0 2 unless $handle
63 12 26 if ($line =~ /^Host: (\w+)/)
65 12 0 if ($1 eq $params{'controller'}) { }
76 12 26 if ($line =~ /Model: \s (\S.+\S) \s+ Rev: \s (\S+)/x)
77 0 12 unless $disk
82 1 11 if $disk->{'MODEL'} =~ /raid|virtual/i