Clicker/Positioned.pm

filter: Statementstmt 61.9% 13 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 100% 4 / 4 totaltotal 62.5% 20 / 32 CC 1 SCAR 4.5
CC
1
Cov
62%
is_left
2.0
is_right
2.0
is_top
2.0
CRAP 1.6
« Clicker/Renderer/StackedBar.pm ↑ Summary Clicker/Renderer/Bubble.pm »
1 package Chart::Clicker::Positioned;
2 11 $Chart::Clicker::Positioned::VERSION = '2.90';
3 11 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: Role for components that care about position.
6  
7 11 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 11 enum 'Chart::Clicker::Position' => [qw(left right top bottom)];
10  
11  
12 11 has 'position' => (
13 is => 'rw',
14 isa => 'Chart::Clicker::Position'
15 );
16  
17  
18 0 ▶sub is_left {
Subroutine is_left: not called CC=1 SCAR=6.9
Pod documented
19 0 my ($self) = @_;
20  
21 0 return $self->position eq 'left';
22 }
23  
24  
25 0 ▶sub is_right {
Subroutine is_right: not called CC=1 SCAR=6.9
Pod documented
26 0 my ($self) = @_;
27  
28 0 return $self->position eq 'right';
29 }
30  
31  
32 0 ▶sub is_top {
Subroutine is_top: not called CC=1 SCAR=6.9
Pod documented
33 0 my ($self) = @_;
34  
35 0 return $self->position eq 'top';
36 }
37  
38  
39 0 ▶sub is_bottom {
Subroutine is_bottom: not called CC=1 SCAR=6.9
Pod documented
40 0 my ($self) = @_;
41  
42 0 return $self->position eq 'bottom';
43 }
44  
45 11 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
46 11 1;
47  
48 __END__
« Clicker/Renderer/StackedBar.pm ↑ Summary Clicker/Renderer/Bubble.pm »