OFC/Dataset/Area.pm

filter: Statementstmt 100% 31 / 31 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 97.7% 43 / 44 CC 3 SCAR 4.7
CC
3
Cov
100%
_parameters_for_type
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.6
« OFC/YAxis.pm ↑ Summary OFC/Dataset/LineWithDots.pm »
1 package Chart::OFC::Dataset::Area;
2 20 $Chart::OFC::Dataset::Area::VERSION = '0.12';
3 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 20 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 20 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 20 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 20 ▶use Chart::OFC::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 20 extends 'Chart::OFC::Dataset::Line';
11  
12 20 has dot_size =>
13 ( is => 'ro',
14 isa => 'Chart::OFC::Type::PosInt',
15 default => 5,
16 );
17  
18 20 has opacity =>
19 ( is => 'ro',
20 isa => 'Chart::OFC::Type::Opacity',
21 default => '80',
22 );
23  
24 20 has fill_color =>
25 ( is => 'ro',
26 isa => 'Chart::OFC::Type::Color',
27 coerce => 1,
28 predicate => '_has_fill_color',
29 );
30  
31 sub type
32 3 ▶{
Subroutine type: called CC=1 SCAR=0.0
Pod undocumented
33 3 return 'area_hollow';
34 }
35  
36 sub _parameters_for_type
37 3 ▶{
Subroutine _parameters_for_type: called CC=3 SCAR=11.0
38 3 my $self = shift;
39  
40 3 my @p = ( $self->width(), $self->dot_size(), $self->opacity(), $self->color() );
41  
42 3 ▶ push @p, ( $self->label(), $self->text_size() )
Branch: 1 branch
BranchTrueFalseTotal
if $self->_has_label 2 1 3
43 if $self->_has_label();
44  
45 3 ▶ push @p, $self->fill_color()
Branch: 1 branch
BranchTrueFalseTotal
if $self->_has_fill_color 1 2 3
46 if $self->_has_fill_color();
47  
48 3 return @p;
49 }
50  
51 20 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
52  
53 20 __PACKAGE__->meta()->make_immutable();
54  
55 20 1;
56  
57  
58 # ABSTRACT: A dataset represented as a line with a filled area
59  
60 __END__
« OFC/YAxis.pm ↑ Summary OFC/Dataset/LineWithDots.pm »