Branch Coverage

blib/lib/Device/RAID/Poller/Backends/Avago_tw_cli.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
75 0 0 unless ($self->{'usable'})
86 0 0 if ($? != 0)
101 0 0 if (defined $controller and defined $bbu)
105 0 0 if ($bbu =~ /Charging/) { }
0 0 elsif ($bbu =~ /^-/) { }
0 0 elsif ($bbu =~ /[Oo][Kk]/) { }
0 0 elsif ($bbu =~ /Testing/) { }
0 0 elsif ($bbu =~ /Fault/ or $bbu =~ /WeakBat/ or $bbu =~ /Error/) { }
152 0 0 if ($? != 0)
164 0 0 if (defined $line_split[0] and $line_split[0] =~ /^u[0123456789]+/)
170 0 0 if ($status =~ /OK/) { }
0 0 elsif ($status =~ /^INIT/) { }
0 0 elsif ($status =~ /^REBUILDING/ or $status =~ /^RECOVERY/ or $status =~ /^MIGRATING/) { }
0 0 elsif ($status =~ /DEGRADED/ or $status =~ /INOPERABLE/) { }
203 0 0 if (defined $line_split[0] and $line_split[0] =~ /^p[0123456789]+/ and defined $line_split[1] and defined $line_split[2] and $line_split[2] =~ /^u[0123456789]+/)
210 0 0 if ($line_split[1] =~ /OK/) { }
240 0 0 unless ($^O =~ /linux/ or $^O =~ /freebsd/)
249 0 0 if ($? != 0)
261 0 0 if ($? != 0)
269 0 0 if ($? != 0)
274 0 0 if (defined $raw_split[2]) { }
278 0 0 unless (defined $third_line[8])
285 0 0 unless ($third_line[8] =~ /^c[0123456789]+$/)