Branch Coverage

blib/lib/Lab/Instrument/Yokogawa7651.pm
Criterion Covered Total %
branch 8 146 5.4


line true false branch
65 0 1 if ($self->get_status("setting"))
76 0 0 unless ($function =~ /voltage/iu)
90 0 0 unless ($function =~ /current/iu)
111 0 12 if ($value > $range or $value < -$range)
206 0 0 if ($self->get_status('execution', $tail) == 0) { }
226 0 0 if ($flag <= 1.1 and $flag >= 0.9) { }
0 0 elsif ($flag <= 0) { }
238 0 0 if ($execution == 0)
276 0 0 if (abs $current - $target > $eql)
293 0 0 if ($result =~ /^...([VA])/u) { }
294 0 0 $1 eq 'V' ? :
310 0 0 unless (defined $read_mode and $read_mode =~ /device|cache|request|fetch/u)
315 0 0 if ($read_mode eq 'cache' and defined $self->{'device_cache'}{'level'}) { }
0 0 elsif ($read_mode eq 'request' and $self->{'request'} == 0) { }
0 0 elsif ($read_mode eq 'request' and $self->{'request'} == 1) { }
0 0 elsif ($read_mode eq 'fetch' and $self->{'request'} == 1) { }
334 0 0 if ($self->{'request'} == 1) { }
353 0 0 unless ($function =~ /voltage/iu)
366 0 0 unless ($function =~ /current/iu)
378 0 0 unless ($function =~ /(current|voltage)/iu)
384 0 0 if ($self->get_function eq $function)
388 0 0 if ($self->get_output and $self->device_settings->{'gate_protect'})
394 0 0 $function =~ /current/iu ? :
409 0 0 if ($function =~ /voltage/iu) { }
0 0 elsif ($function =~ /current/iu) { }
410 0 0 if ($range <= 0.01) { }
0 0 elsif ($range <= 0.1) { }
0 0 elsif ($range <= 1) { }
0 0 elsif ($range <= 10) { }
0 0 elsif ($range <= 30) { }
422 0 0 if ($range <= 0.001) { }
0 0 elsif ($range <= 0.01) { }
0 0 elsif ($range <= 0.1) { }
459 19 0 unless (defined $read_mode and $read_mode =~ /device|cache/u)
463 0 19 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'info'})
472 19 76 if ($line =~ /END/u)
486 0 0 unless (defined $read_mode and $read_mode =~ /device|cache/u)
490 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'range'})
498 0 0 if ($range =~ /F(\d)R(\d)/u)
504 0 0 if ($function =~ /voltage/iu) { }
0 0 elsif ($function =~ /current/iu) { }
505 0 0 $range =~ /6/u ? :
0 0 $range =~ /5/u ? :
0 0 $range =~ /4/u ? :
0 0 $range =~ /3/u ? :
0 0 $range =~ /2/u ? :
520 0 0 $range =~ /6/u ? :
0 0 $range =~ /5/u ? :
0 0 $range =~ /4/u ? :
546 0 0 if ($value eq "repeat" or $value eq "REPEAT")
547 0 0 if ($value eq "single" or $value eq "SINGLE")
549 0 0 if ($value != 0 and $value != 1)
562 0 0 if ($sweep_time < $self->device_settings->{'min_sweep_time'}) { }
0 0 elsif ($sweep_time > $self->device_settings->{'max_sweep_time'}) { }
574 0 0 if ($interval_time < $self->device_settings->{'min_sweep_time'}) { }
0 0 elsif ($interval_time > $self->device_settings->{'max_sweep_time'}) { }
598 0 0 unless (defined $value)
602 0 0 if ($self->device_settings->{'gate_protect'})
603 0 0 if ($self->get_output == 1 and $value == 0) { }
0 0 elsif ($self->get_output == 0 and $value == 1) { }
614 0 0 if ($value == 1) { }
0 0 elsif ($value == 0) { }
617 0 0 if (defined $current_level)
641 0 0 unless (defined $read_mode and $read_mode =~ /device|cache/u)
645 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'output'})
681 0 0 unless (defined $read_mode and $read_mode =~ /device|cache/u)
685 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'voltage_limit'})
714 0 0 unless (defined $read_mode and $read_mode =~ /device|cache/u)
718 0 0 if ($read_mode eq "cache" and defined $self->{'device_cache'}{'current_limit'})
747 1 2 if defined $request
758 0 0 if scalar @_ == 0
761 0 0 if ($value == 0) { }
0 0 elsif ($value == 1) { }