Branch Coverage

blib/lib/FusionInventory/Agent/Tools/Solaris.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
36 0 0 unless $handle
49 0 0 if ($line =~ /^(\s*)Node \s 0x[a-f\d]+/x)
50 0 0 defined $1 ? :
55 0 0 if ($level > $parent_level) { }
0 0 elsif ($level < $parent_level) { }
73 0 0 if ($line =~ /^\s* name: \s+ '(\S.*)'$/x)
81 0 0 if ($line =~ /^\s* (\S[^:]+): \s+ (\S.*)$/x)
86 0 0 if ($raw_value =~ /^'[^']+'(?: \+ '[^']+')+$/) { }
0 0 elsif ($raw_value =~ /^'([^']+)'$/) { }
138 0 0 if ($section eq 'Physical Memory Configuration')
143 0 0 unless $line =~ qr/ (\d+ \s [MG]B) \s+ \S+ $/x
155 0 0 if ($section eq 'Memory Configuration')
159 0 0 if ($next_line =~ /^Segment Table/) { }
162 0 0 if $next_line =~ /^Bank Table/
170 0 0 unless $line =~ qr/ \d+ \s+ \S+ \s+ \S+ \s+ (\d+ [MG]B) /x
187 0 0 unless $line =~ qr/ (\d+ [MG]B) \s+ \S+ \s+ (\d+ [MG]B) \s+ \S+ \s+ \d $/x
204 0 0 if ($section eq 'Memory Device Sockets')
209 0 0 unless $line =~ qr/^ (\w+) \s+ in \s use \s+ \d \s+ \w+ (?:\s \w+)* /x
235 0 0 if ($section eq 'IO Devices')
239 0 0 unless $line =~ /^ (\S+) \s+ ([A-Z]+) \s+ (\S+) /x
253 0 0 if ($section eq 'IO Cards')
257 0 0 unless $line =~ /^ \S+ \s+ ([A-Z]+) \s+ \S+ \s+ \S+ \s+ (\d) \s+ \S+ \s+ \S+ \s+ \S+ \s+ \S+ \s+ (\S+) /x
278 0 0 if ($section eq 'Upgradeable Slots')
293 0 0 $status eq 'available' ? :
0 0 $status eq 'in use' ? :
325 0 0 if $line =~ /^$/
328 0 0 if $item