Condition Coverage

blib/lib/Math/PlanePath/GrayCode.pm
Criterion Covered Total %
condition 6 48 12.5


and 3 conditions

line !l l&&!r l&&r condition
80 0 0 0 $self->{'radix'} % 2 == 1 && $self->{'gray_type'} eq 'reflected' && ($self->{'apply_type'} eq 'TsF' || $self->{'apply_type'} eq 'FsT')
171 0 0 0 $self->{'radix'} == 2 and $self->{'apply_type'} eq 'TsF' || $self->{'apply_type'} eq 'Fs'
181 0 0 0 $self->{'radix'} == 2 && ($self->{'apply_type'} eq 'sT' || $self->{'apply_type'} eq 'sF')
192 0 0 0 $self->{'apply_type'} eq 'TsF' and $self->{'gray_type'} eq 'reflected'
0 0 0 $self->{'apply_type'} eq 'TsF' and $self->{'gray_type'} eq 'reflected' and $self->{'radix'} > 2

or 2 conditions

line l !l condition
121 0 0 $absdx_minimum{$gray_type}{$self->{'apply_type'}} || 0
215 0 1 $self->{'apply_type'} ||= 'TsF'
216 0 1 $self->{'gray_type'} ||= 'reflected'
272 8128 9182 shift @digits || 0
309 0 0 shift @xdigits || 0
311 0 0 shift @ydigits || 0

or 3 conditions

line l !l&&r !l&&!r condition
171 0 0 0 $self->{'apply_type'} eq 'TsF' || $self->{'apply_type'} eq 'Fs'
211 1 0 0 not $self->{'radix'} or $self->{'radix'} < 2
224 1 0 0 $self->can("$funcbase{$nf}_$gray_type") || croak(qq[Unrecognised gray_type "$self->{'gray_type'}"])
289 0 0 0 $x < 0 or $y < 0
308 0 0 0 @xdigits or @ydigits
310 0 0 0 @xdigits or @ydigits
332 0 0 0 $y2 < 0 or $x2 < 0