Chart/Type/Pie.pm

filter: Statementstmt 88.8% 16 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 80.7% 21 / 26 CC 2 SCAR 9.8
CC
2
Cov
80%
parameter_value
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Chart/Size.pm ↑ Summary Chart/Axis/Item.pm »
1 # $Id$
2  
3 package Google::Chart::Type::Pie;
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  
7 1 with 'Google::Chart::Type::Simple';
8  
9 1 has 'pie_type' => (
10 is => 'rw',
11 isa => enum([ qw(2d 3d) ]),
12 required => 1,
13 default => '2d'
14 );
15  
16 1 __PACKAGE__->meta->make_immutable;
17  
18 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶no Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 0 ▶sub parameter_value {
Subroutine parameter_value: not called CC=2 SCAR=17.9
Pod documented
22 0 my $self = shift;
23  
24 0 ▶ return $self->pie_type eq '3d' ? 'p3' : 'p';
Branch: 1 branch
BranchTrueFalseTotal
$self->pie_type eq '3d' ? : 0 0 0
25 }
26  
27 1 1;
28  
29 __END__
« Chart/Size.pm ↑ Summary Chart/Axis/Item.pm »