Branch Coverage

blib/lib/Lab/Moose/Sweep/Continuous.pm
Criterion Covered Total %
branch 25 54 46.3


line true false branch
94 1 1 if (defined $self->points) { }
0 1 elsif (defined $self->from) { }
95 0 1 unless (defined $self->rates)
99 0 1 if (defined $self->from or defined $self->to or defined $self->rate or defined $self->start_rate or $self->interval)
109 0 0 unless (defined $self->to)
112 0 0 unless (defined $self->rate)
115 0 0 if (defined $self->points or defined $self->rates or defined $self->intervals)
129 1 0 unless (defined $self->points or defined $self->from)
137 1 0 if (defined $self->points) { }
0 0 elsif (defined $self->from) { }
144 0 1 if ($num_points < 2)
148 0 1 if ($num_rates > $num_points)
151 0 1 if ($num_rates < 1)
154 0 1 if ($num_rates < $num_points)
158 0 1 if (not defined $self->intervals) { }
164 0 1 if ($num_intervals > $num_points - 1)
167 0 1 if ($num_intervals < 1)
170 0 1 if ($num_intervals < $num_points - 1)
183 0 0 unless (defined $self->start_rate)
191 0 0 unless (defined $self->interval)
197 0 1 if ($self->backsweep)
213 0 1 if ($self->both_directions and $self->backsweep)
228 3 13 if ($index == 0 or $interval == 0) { }
236 13 0 if ($t < $target_time) { }
302 9 2 if ($self->instrument->active)
308 1 1 if ($self->points_index < $self->num_points) { }
316 0 1 if ($self->both_directions)