Jacquard/Role/Geometry/Position2D.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 87.5% 14 / 16 CC 1 SCAR 0.7
CC
1
Cov
83%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Jacquard/Actor/Role/DataPrinter.pm ↑ Summary Jacquard/Actor.pm »
1 1 ▶use Renard::Incunabula::Common::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Intertangle::Jacquard::Role::Geometry::Position2D;
3 # ABSTRACT: A 2-D geometry with variable position
4 $Intertangle::Jacquard::Role::Geometry::Position2D::VERSION = '0.002';
5 1 ▶use Mu::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Intertangle::Punchcard::Attributes;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 0 ▶use Intertangle::Yarn::Graphene;
Subroutine BEGIN: called CC=1 SCAR=2.6
8  
9 variable x =>;
10 variable y =>;
11  
12 method origin_point() {
13 Intertangle::Yarn::Graphene::Point->new(
14 x => $self->x->value,
15 y => $self->y->value,
16 );
17 }
18  
19 1;
20  
21 __END__
« Jacquard/Actor/Role/DataPrinter.pm ↑ Summary Jacquard/Actor.pm »