Branch Coverage

blib/lib/Math/Project3D.pm
Criterion Covered Total %
branch 38 66 57.5


line true false branch
25 199 42 if $_ > $max
35 0 0 ref $_ eq 'Math::MatrixReal' ? :
37 0 0 ref $_ eq 'Math::MatrixReal' ? :
55 88 153 ref $_ eq 'Math::MatrixReal' ? :
67 88 153 if (ref $col eq 'Math::MatrixReal') { }
96 0 6 unless @_ > 1
104 3 3 if (ref $self eq 'Math::Project3D')
136 0 3 if defined $missing_attribute
148 0 9 unless exists $$self{$_}
151 0 9 if ref $$self{$_} eq 'Math::MatrixReal'
152 0 9 if ref $$self{$_} ne 'ARRAY'
161 1 2 if (defined $$self{'projection_vector'} and ref $$self{'projection_vector'} eq 'ARRAY') { }
2 0 elsif (not defined $$self{'projection_vector'} or ref $$self{'projection_vector'} ne 'Math::MatrixReal') { }
226 0 34 unless defined $self->get_function
247 0 34 unless defined $dimension
278 0 1 unless defined $self->get_function
283 0 1 unless ref $callback eq 'CODE'
289 0 1 if grep {ref $_ ne 'ARRAY';} @ranges
297 2 5 if @$_ == 1
355 0 45 unless defined $dimension
394 0 1 if @_ == 0
397 0 1 unless defined $self->get_function
409 0 12 unless defined $coeff1
444 0 10 unless ref $function eq 'CODE'
473 0 10 unless @_
509 0 9 unless defined $self->get_function
518 9 0 if (ref $e3_ ne 'Math::MatrixReal')
519 0 9 if ref $e3_ ne 'ARRAY'
597 9 2 if $_[0] eq 'restore'
608 0 2 if $dimension
645 0 2 unless defined $self->get_function
653 0 1 if (not defined $level or $level <= 0 or $level > $$self{'rotated'})
660 2 0 if ($$self{'rotated'}) { }