Chart/Axis/Item.pm

filter: Statementstmt 86.2% 25 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 85.7% 30 / 35 CC 2 SCAR 8.9
CC
2
Cov
86%
__ANON__
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Chart/Type/Pie.pm ↑ Summary Chart/Margin.pm »
1 # $Id$
2  
3 package Google::Chart::Axis::Item;
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::Axis::Style;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 enum 'Google::Chart::Axis::Location' => qw(x y r t);
9  
10 1 subtype 'Google::Chart::Axis::StyleList'
11 => as 'ArrayRef[Google::Chart::Axis::Style]'
12 ;
13  
14 coerce 'Google::Chart::Axis::StyleList'
15 => from 'ArrayRef[HashRef]'
16 0 ▶ => via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
17 0 my @list;
18 0 foreach my $h (@$_) {
19 0 push @list, Google::Chart::Axis::Style->new(%$h);
20 }
21 0 return \@list;
22 }
23 1 ;
24  
25 1 has 'location' => (
26 is => 'rw',
27 isa => 'Google::Chart::Axis::Location',
28 );
29  
30 1 has 'labels' => (
31 is => 'rw',
32 isa => 'ArrayRef[Str]',
33 auto_deref => 1,
34 );
35  
36 1 has 'label_positions' => (
37 is => 'rw',
38 isa => 'ArrayRef[Num]',
39 auto_deref => 1,
40 );
41  
42 1 has 'range' => (
43 is => 'rw',
44 isa => 'ArrayRef[Num]',
45 auto_deref => 1,
46 );
47  
48 1 has 'styles' => (
49 is => 'rw',
50 isa => 'Google::Chart::Axis::StyleList',
51 auto_deref => 1,
52 );
53  
54 1 __PACKAGE__->meta->make_immutable;
55  
56 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
57 1 ▶no Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
58  
59 1 1;
60  
61 __END__
« Chart/Type/Pie.pm ↑ Summary Chart/Margin.pm »