Chart/Axis/Style.pm

filter: Statementstmt 91.3% 21 / 23 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 69.2% 27 / 39 CC 4 SCAR 22.5
CC
4
Cov
72%
as_query
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 9.4
« Chart/Data/Simple.pm ↑ Summary Chart/Types.pm »
1 # $Id$
2  
3 package Google::Chart::Axis::Style;
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Google::Chart::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 enum 'Google::Chart::Axis::Alignment' => qw(-1 0 1);
9  
10 1 has 'color' => (
11 is => 'rw',
12 isa => 'Google::Chart::Color'
13 );
14  
15 1 has 'font_size' => (
16 is => 'rw',
17 isa => 'Num',
18 );
19  
20 1 has 'alignment' => (
21 is => 'rw',
22 isa => 'Google::Chart::Axis::Alignment'
23 );
24  
25 1 __PACKAGE__->meta->make_immutable;
26  
27 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 ▶no Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 0 ▶sub as_query {
Subroutine as_query: not called CC=4 SCAR=30.0
Pod documented
31 0 my $self = shift;
32 0 ▶ return join(',', $self->color || '', $self->font_size || '', $self->alignment || 0);
Condition0%0/6
$self->color || ''
l!l
00
$self->font_size || ''
l!l
00
$self->alignment || 0
l!l
00
MC/DC0%0/1
$self->color || ''
$self->color
MC/DC0%0/1
$self->font_size || ''
$self->font_size
MC/DC0%0/1
$self->alignment || 0
$self->alignment
Truth table0%0/2
A
A= $self->color
Aresult
11
00
Truth table0%0/2
A
A= $self->font_size
Aresult
11
00
Truth table0%0/2
A
A= $self->alignment
Aresult
11
00
33 }
34  
35 1 1;
36  
37 __END__
« Chart/Data/Simple.pm ↑ Summary Chart/Types.pm »