Branch Coverage

blib/lib/Math/PRBS.pm
Criterion Covered Total %
branch 86 86 100.0


line true false branch
45 1 28 @_ % 2 ? :
67 5 24 if (exists $pairs{'prbs'}) { }
12 12 elsif (exists $pairs{'taps'}) { }
10 2 elsif (exists $pairs{'poly'}) { }
75 1 4 unless exists $prbs{$pairs{'prbs'}}
91 1 11 unless 'ARRAY' eq ref $pairs{'taps'}
93 1 10 unless @{$pairs{'taps'};}
109 2 8 unless /^[01]*$/
113 14 10 if $1
116 1 7 unless @taps
167 17 1885393 if $i and not defined $self->{'period'} and $self->{'lfsr'} eq $self->{'start'}
169 2 1885443 wantarray ? :
213 7 3 if $self->{'i'} > $n
233 2 1 unless $state == $lfsr
265 1 6 unless 0 == @_ % 2
268 2 4 exists $opts{'limit'} ? :
269 1 5 if lc $limit eq 'max'
270 1 5 if defined $self->{'period'} and $self->{'i'} > $self->{'period'}
273 4 245833 if defined $self->{'period'} and $self->{'period'} < $limit
289 1 65597 wantarray ? :
309 1 18 unless 0 == @_ % 2
312 3 15 exists $opts{'limit'} ? :
313 2 16 if lc $limit eq 'max'
316 7 11 if ($self->{'i'})
317 2 5 if ($opts{'rewind'})
321 2 16 if defined $self->{'period'} and $self->{'i'} > $self->{'period'}
325 15 278978 if defined $self->{'period'} and $self->{'period'} < $limit
327 5 13 wantarray ? :
333 1 7 unless 0 == @_ % 2
348 2 8 unless defined $n
351 7 3 wantarray ? :
365 1 6 unless 0 == @_ % 2
368 3 3 exists $opts{'limit'} ? :
371 4 2 if lc $limit eq 'max' or $limit > $period
394 12 11 if $p
417 9 15 unless exists $self->{'degree'}
461 16 9 if defined $self->{'period'}
463 1 8 unless 0 == @_ % 2
466 6 2 exists $opts{'force'} ? :
467 2 6 if 'not' eq $force
470 1 5 if $force eq 'estimate'
472 2 3 unless $force =~ /[^\d]/
677 4 5 exists $OEIS{$taps} ? :