Branch Coverage

blib/lib/HPUX/Ioscan.pm
Criterion Covered Total %
branch 31 98 31.6


line true false branch
72 0 0 if (not defined $cache or $force)
75 0 0 if (defined $HPUX::Ioscan::test) { }
82 0 0 unless $fh->open('ioscan -nF |')
86 0 0 if $!
92 0 0 if ($line =~ s/^\s+//) { }
116 0 0 if defined $args{'hardware_path'}
139 0 1 if ($debug)
163 0 1 if $debug
168 0 1 if $debug
169 0 1 if $debug
171 1 0 if ($new_or_saved eq 'old')
172 0 1 if $debug
173 0 1 unless $ioscan_hashref = Storable::retrieve($datafile)
178 0 0 unless @ioscan_out = `$remote_access $remote_system -l $remote_user -n $remote_command`
183 0 0 if $debug
184 0 0 if ($line =~ s/^\s+//) { }
186 0 0 if $debug
192 0 0 if $debug
198 0 0 if ($new_or_saved eq 'new')
199 0 0 if $debug
200 0 0 unless Storable::nstore(\%ioscan_info, $datafile)
214 0 6 if $debug
215 0 6 if $debug
217 0 6 if $debug
218 0 6 if $debug
219 0 6 unless $HPUX::Ioscan::AUTOLOAD =~ /.*::get_(\w+)/
220 0 6 if $debug
221 0 6 unless ref $self
222 0 6 if $HPUX::Ioscan::AUTOLOAD =~ /::DESTROY$/
223 0 6 unless (exists $$self{$HWPATH}{$1})
226 0 6 if $debug
233 0 0 if $debug
262 4 597 if ($$self{$mainkey}{$subkey} eq 'ext_bus')
295 0 1 if $debug
297 0 31 if $debug
299 0 601 if $debug
300 0 601 if $debug
301 1 25 if ($subkey eq 'class' and $subval eq 'disk' and $$self{$mainkey}{'card_instance'} eq $instance)
302 0 1 if $debug
303 0 1 if $debug
313 1 0 if (length $cval < 2)
315 1 0 if (length $tval < 2)
317 1 0 if (length $dval < 2)
320 0 1 if $debug
347 0 0 if $debug
350 0 0 if $debug
351 0 0 if $debug
352 0 0 if (defined ${$$self{$mainkey}{'device_files'};}[0])
353 0 0 if (${$$self{$mainkey}{'device_files'};}[0] eq "$device_name")