Branch Coverage

blib/lib/Lab/Instrument/SignalRecovery726x.pm
Criterion Covered Total %
branch 0 208 0.0


line true false branch
80 0 0 unless (defined $imode)
84 0 0 if (defined $imode and $imode == 0 || $imode == 1 || $imode == 2) { }
113 0 0 if (defined $vmode and $vmode == 0 || $vmode == 1 || $vmode == 2 || $vmode == 3) { }
142 0 0 if (defined $value and $value == 0 || $value == 1) { }
169 0 0 if (defined $value and $value == 0 || $value == 1) { }
197 0 0 if (defined $value and $value == 0 || $value == 1) { }
312 0 0 if (index($value, 'n') >= 0) { }
0 0 elsif (index($value, 'f') >= 0) { }
0 0 elsif (index($value, 'p') >= 0) { }
0 0 elsif (index($value, 'u') >= 0) { }
0 0 elsif (index($value, 'm') >= 0) { }
328 0 0 if (exists $matrix[$imode]{$value}) { }
0 0 elsif ($value == 'AUTO') { }
385 0 0 if (index($value, "dB") >= 0)
389 0 0 if (defined $value and int $value == $value and $value <= 9 and $value >= 0) { }
0 0 elsif ($value eq 'AUTO') { }
424 0 0 if (not defined $linefrequency) { }
0 0 elsif ($linefrequency eq '50Hz') { }
0 0 elsif ($linefrequency eq '60Hz') { }
438 0 0 if (defined $value and $value == 0 || $value == 1 || $value == 2 || $value == 3) { }
470 0 0 if ($value eq 'INT') { }
0 0 elsif ($value eq 'EXT LOGIC') { }
0 0 elsif ($value eq 'EXT') { }
491 0 0 if ($result == 0) { }
0 0 elsif ($result == 1) { }
0 0 elsif ($result == 2) { }
513 0 0 if ($value >= 0 and $value <= 360) { }
548 0 0 if ($value eq '6dB') { }
0 0 elsif ($value eq '12dB') { }
0 0 elsif ($value eq '18dB') { }
0 0 elsif ($value eq '24dB') { }
570 0 0 if ($result == 0) { }
0 0 elsif ($result == 1) { }
0 0 elsif ($result == 2) { }
0 0 elsif ($result == 3) { }
630 0 0 if ($value =~ /\b(\d+\.?[\d+]?)us?\b/u) { }
0 0 elsif ($value =~ /\b(\d+\.?[\d+]?)ms?\b/u) { }
0 0 elsif ($value =~ /\b(\d+\.?[\d+]?)ks?\b/u) { }
640 0 0 if (exists $list{$value}) { }
677 0 0 if ($x_value >= -300 or $x_value <= 300)
682 0 0 if ($offset[0] != $x_value)
689 0 0 if ($y_value >= -300 or $y_value <= 300)
694 0 0 if ($offset[1] != $y_value)
701 0 0 if ($x_value eq "OFF")
705 0 0 if ($offset[0] != 0)
712 0 0 if ($y_value eq "OFF")
716 0 0 if ($offset[1] != 0)
723 0 0 if ($x_value eq "AUTO")
743 0 0 if (index($value, 'u') >= 0) { }
0 0 elsif (index($value, 'm') >= 0) { }
750 0 0 if ($value >= 0 and $value <= 5) { }
751 0 0 if ($id == 7260) { }
0 0 elsif ($id == 7265) { }
775 0 0 if ($id == 7260) { }
0 0 elsif ($id == 7265) { }
788 0 0 if (index($value, 'm') >= 0) { }
0 0 elsif (index($value, 'k') >= 0) { }
795 0 0 if ($value > 0 and $value <= 250000) { }
823 0 0 if ($channel eq 'X') { }
0 0 elsif ($channel eq 'Y') { }
0 0 elsif ($channel eq 'MAG') { }
0 0 elsif ($channel eq 'PHA') { }
0 0 elsif ($channel eq 'XY') { }
0 0 elsif ($channel eq 'MP') { }
0 0 elsif ($channel eq 'ALL' or $channel eq '') { }
825 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'value'}{'X'})
837 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'value'}{'Y'})
849 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'value'}{'MAG'})
861 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'value'}{'PHA'})
873 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'value'}{'X'} and defined $self->{'device_cache'}{'value'}{'Y'})
891 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'value'}{'MAG'} and defined $self->{'device_cache'}{'value'}{'PHA'})
907 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'value'}{'X'} and defined $self->{'device_cache'}{'value'}{'Y'} and defined $self->{'device_cache'}{'value'}{'MAG'} and defined $self->{'device_cache'}{'value'}{'PHA'})
948 0 0 if ($channel eq 'X') { }
0 0 elsif ($channel eq 'Y') { }
0 0 elsif ($channel eq 'XY') { }
0 0 elsif ($channel eq 'MAG') { }
0 0 elsif ($channel eq 'PHA') { }
0 0 elsif ($channel eq 'MP') { }
0 0 elsif ($channel eq 'ALL') { }
0 0 elsif ($channel eq 'X-') { }
0 0 elsif ($channel eq 'Y-') { }
0 0 elsif ($channel eq 'XY-') { }
0 0 elsif ($channel eq 'MAG-') { }
0 0 elsif ($channel eq 'PHA-') { }
0 0 elsif ($channel eq 'MP-') { }
0 0 elsif ($channel eq 'ALL-') { }
991 0 0 unless (defined $interval)
997 0 0 if ($trigger eq "EXT")
1035 0 0 unless (defined $timeout)
1043 0 0 if ($status != $Lab::VISA::VI_SUCCESS)
1057 0 0 if (defined $SEN and $SEN >= 2e-15 and $SEN <= 1) { }
1064 0 0 if ($@ =~ /(Error while reading:)/u)
1077 0 0 if ($@ =~ /(Error while reading:)/u)
1090 0 0 if ($status != $Lab::VISA::VI_SUCCESS)
1116 0 0 if ($status[0] == 0) { }
1131 0 0 if ($status[0] == 0)
1165 0 0 unless (defined $value)
1178 0 0 unless (defined $nop)
1184 0 0 if ($channels == 17) { }
0 0 elsif ($channels == 19) { }
0 0 elsif ($channels == 31) { }
1189 0 0 if ($nop > int 32000 / $channels)
1205 0 0 unless (defined $interval)
1209 0 0 if ($interval < "0.005" or $interval > 1000000)