blib/lib/Math/3Space/Projection.pm

filter: Statementstmt 50.0% 6 / 12 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 25.0% 1 / 4 Podpod 100% 2 / 2 totaltotal 28.1% 9 / 32 CC 5 SCAR 22.3
CC
5
Cov
27%
new_frustum
12.0
new_perspective
12.0
BEGIN
1.1
CRAP 9.3
↑ Summary blib/lib/Math/3Space.pm »
1 package Math::3Space::Projection;
2  
3 8 our $VERSION = '0.008'; # VERSION
4 # ABSTRACT: Object wrapping a 4D projection, for use in OpenGL rendering
5  
6 # All methods handled by XS
7 8 require Math::3Space;
8  
9 0 ▶sub new_frustum { shift if !ref $_[0] && $_[0] eq __PACKAGE__; &_frustum }
Subroutine new_frustum: not called CC=3 SCAR=24.8
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if not ref $_[0] and $_[0] eq __PACKAGE__ 0 0 0
Condition0%0/3
not ref $_[0] and $_[0] eq __PACKAGE__
!ll&&!rl&&r
000
MC/DC0%0/2
not ref $_[0] and $_[0] eq __PACKAGE__
not ref $_[0] $_[0] eq __PACKAGE__
Truth table0%0/3
not(A) and B
A= not ref $_[0]B= $_[0] eq __PACKAGE__
ABresult
0X0
100
111
10 0 ▶sub new_perspective { shift if !ref $_[0] && $_[0] eq __PACKAGE__; &_perspective }
Subroutine new_perspective: not called CC=3 SCAR=24.8
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
if not ref $_[0] and $_[0] eq __PACKAGE__ 0 0 0
Condition0%0/3
not ref $_[0] and $_[0] eq __PACKAGE__
!ll&&!rl&&r
000
MC/DC0%0/2
not ref $_[0] and $_[0] eq __PACKAGE__
not ref $_[0] $_[0] eq __PACKAGE__
Truth table0%0/3
not(A) and B
A= not ref $_[0]B= $_[0] eq __PACKAGE__
ABresult
0X0
100
111
11  
12 0 ▶use overload '""' => sub { "[@{[$_[0]->matrix_colmajor]}]" };
Subroutine BEGIN: called CC=1 SCAR=0.6
Subroutine __ANON__: not called CC=1 SCAR=0.6
13  
14 8 1;
15  
16 __END__
↑ Summary blib/lib/Math/3Space.pm »