| line |
true |
false |
branch |
|
52
|
0 |
0 |
if $> |
|
53
|
0 |
0 |
@devices ? : |
|
54
|
0 |
0 |
unless @devices |
|
136
|
8 |
28 |
if ($key =~ /\A5\Z|\A187\Z|\A188\Z|\A197\Z|\A198\Z/) |
|
138
|
1 |
7 |
if $value->[1] > 0 |
|
155
|
0 |
0 |
unless open my $fh, '-|', 'parted -l' |
|
158
|
0 |
0 |
unless close $fh |
|
236
|
2 |
0 |
@p_devices ? : |
|
241
|
0 |
2 |
unless $out and $out =~ /START OF INFORMATION SECTION/ |
|
261
|
0 |
0 |
unless defined $smartctl and -f $smartctl |
|
264
|
0 |
0 |
unless open my $fh, '-|', "$smartctl $device $options" |
|
268
|
0 |
0 |
if ($smart_output =~ /Unknown USB bridge/) |
|
269
|
0 |
0 |
unless open $fh, '-|', "$smartctl $device $options -d sat" |
|
304
|
0 |
2 |
unless $errors |
|
316
|
0 |
2 |
unless $health and $health =~ /PASSED|FAILED/x |
|
328
|
1 |
1 |
unless $model |
|
341
|
1 |
1 |
if ($temp_c) { } |
|
365
|
6 |
18 |
unless exists $self->{'devices'}{$device} |