Branch Coverage

blib/lib/Set/CrossProduct.pm
Criterion Covered Total %
branch 51 70 72.8


line true false branch
206 3 15 if ($ref_type eq ref {}) { }
15 0 elsif ($ref_type eq ref []) { }
216 0 0 if warnings::enabled()
221 3 15 unless (@$array_ref > 1)
222 1 2 if warnings::enabled()
227 0 39 unless (ref $array eq ref [])
228 0 0 if warnings::enabled()
267 66 167 if ($self->{'counters'}[$tail] == $self->{'lengths'}[$tail])
271 6 60 if ($tail == 0 and $self->{'counters'}[$tail] == $self->{'lengths'}[$tail])
308 188 12 unless ($self->{'labeled'})
309 0 188 wantarray ? :
315 0 12 wantarray ? :
366 0 4 if (wantarray) { }
380 6 336 if @_ > 1
401 7 173 if $self->done
436 1 8 if (@_ > 2) { }
2 6 elsif (not defined $n) { }
4 2 elsif ($n >= $self->cardinality) { }
0 2 elsif ($n =~ /\D/) { }
450 7 2 if ($message)
459 4 4 if ($factor > $working_n)
501 4 181 unless defined $self->position
526 1 206 if (@_ > 2) { }
2 204 elsif (not defined $n) { }
4 200 elsif ($n >= $self->cardinality) { }
0 200 elsif ($n =~ /\D/) { }
540 7 200 if ($message)
552 0 200 wantarray ? :
568 7 529 if $self->{'done'}
590 1 5 if ($self->position == 0)
595 0 5 $self->done ? :
610 0 0 ref $rand_ref eq ref [] ? :
0 0 if (wantarray) { }
627 2 0 unless defined $position
652 0 4 if $self->{'ungot'}