line |
true |
false |
branch |
59
|
0 |
0 |
unless $time |
91
|
0 |
0 |
unless $manufacturer |
102
|
0 |
0 |
if (exists $manufacturers{$manufacturer}) { } |
|
0 |
0 |
elsif ($manufacturer =~ /(
maxtor |
sony |
compaq |
ibm |
toshiba |
fujitsu |
lg |
samsung |
nec |
transcend |
matshita |
hitachi |
pioneer
)/xi) { } |
|
0 |
0 |
elsif ($manufacturer =~ /^(hp|HP|(?i)hewlett[ -]packard)/) { } |
|
0 |
0 |
elsif ($manufacturer =~ /^(WDC|(?i)western)/) { } |
|
0 |
0 |
elsif ($manufacturer =~ /^(ST|(?i)seagate)/) { } |
|
0 |
0 |
elsif ($manufacturer =~ /^(HD|IC|HU|HGST)/) { } |
138
|
0 |
0 |
unless $speed |
140
|
0 |
0 |
if $speed =~ /^PC3200U/ |
142
|
0 |
0 |
unless $speed =~ /^([,.\d]+) \s? (\S+)$/x |
147
|
0 |
0 |
$unit eq 'mhz' ? : |
|
0 |
0 |
$unit eq 'ghz' ? : |
158
|
0 |
0 |
unless $size |
160
|
0 |
0 |
if $size =~ /^\d+$/ |
164
|
0 |
0 |
unless $size =~ /^([,.\d]+) (\S+)$/x |
169
|
0 |
0 |
$unit eq 'bytes' ? : |
|
0 |
0 |
$unit eq 'kb' ? : |
|
0 |
0 |
$unit eq 'mb' ? : |
|
0 |
0 |
$unit eq 'gb' ? : |
|
0 |
0 |
$unit eq 'tb' ? : |
180
|
0 |
0 |
unless $major |
181
|
0 |
0 |
unless $minor |
182
|
0 |
0 |
unless $min_major |
183
|
0 |
0 |
unless $min_minor |
198
|
0 |
0 |
unless defined $string |
204
|
0 |
0 |
unless (&Encode::is_utf8($string) or $string =~ /\A(
[\x09\x0A\x0D\x20-\x7E] # ASCII
| [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte
| \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs
| [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte
| \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates
| \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3
| [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15
| \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16
)*\z/x) |
231
|
0 |
0 |
unless $params{'directory'} |
235
|
0 |
0 |
unless (opendir $handle, $params{'directory'}) |
236
|
0 |
0 |
if $params{'logger'} |
250
|
0 |
2 |
if ($params{'file'}) |
251
|
0 |
0 |
unless (open $handle, '<', $params{'file'}) |
252
|
0 |
0 |
if $params{'logger'} |
259
|
2 |
0 |
if ($params{'command'}) |
261
|
2 |
0 |
if $params{'logger'} |
267
|
0 |
2 |
if $FusionInventory::Agent::Tools::OSNAME eq 'solaris' |
268
|
0 |
2 |
unless (open $handle, '-|', $params{'command'} . " 2>$nowhere") |
269
|
0 |
0 |
if $params{'logger'} |
276
|
0 |
0 |
if ($params{'string'}) |
277
|
0 |
0 |
unless open $handle, '<', \$params{'string'} |
290
|
0 |
0 |
unless $handle |
295
|
0 |
0 |
if $result |
303
|
0 |
0 |
unless $handle |
311
|
0 |
0 |
if $result |
318
|
0 |
0 |
unless $params{'pattern'} |
320
|
0 |
0 |
unless $handle |
325
|
0 |
0 |
if @results |
329
|
0 |
0 |
wantarray ? : |
336
|
0 |
0 |
unless $handle |
338
|
0 |
0 |
if (wantarray) { } |
354
|
0 |
0 |
unless $handle |
377
|
0 |
0 |
unless $value |
378
|
0 |
0 |
unless $value =~ /^0x/ |
388
|
0 |
0 |
unless $value |
389
|
0 |
0 |
unless $value =~ /^0x/ |
398
|
0 |
0 |
unless $value |
399
|
0 |
0 |
if $value =~ /^0x/ |
408
|
0 |
0 |
if &$f() |
416
|
0 |
0 |
unless &$f() |
424
|
0 |
0 |
if &$f() |
454
|
0 |
0 |
if ($params{'load'}) |
456
|
0 |
0 |
if ($FusionInventory::Agent::Tools::EVAL_ERROR) |
457
|
0 |
0 |
if $logger |
467
|
0 |
0 |
if $params{'timeout'} |
472
|
0 |
0 |
ref $params{'params'} eq 'ARRAY' ? : |
|
0 |
0 |
ref $params{'params'} eq 'HASH' ? : |
478
|
0 |
0 |
if ($FusionInventory::Agent::Tools::EVAL_ERROR) |
479
|
0 |
0 |
$FusionInventory::Agent::Tools::EVAL_ERROR eq "alarm\n" ? : |
482
|
0 |
0 |
if $logger |
491
|
0 |
0 |
if ($FusionInventory::Agent::Tools::OSNAME eq 'MSWin32') { } |
503
|
0 |
0 |
unless open $handler, '<', $file |