OFC/Dataset/Scatter.pm

filter: Statementstmt 100% 29 / 29 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 97.5% 39 / 40 CC 2 SCAR 2.0
CC
2
Cov
100%
_parameters_for_type
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« OFC/Dataset/HighLowClose.pm ↑ Summary OFC/Dataset/Bar.pm »
1 package Chart::OFC::Dataset::Scatter;
2 20 $Chart::OFC::Dataset::Scatter::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 values =>
13 ( is => 'ro',
14 isa => 'Chart::OFC::Type::NonEmptyArrayRefOfArrayRefsOfNumsOrUndefs',
15 required => 1,
16 auto_deref => 1,
17 );
18  
19 20 has circle_size =>
20 ( is => 'ro',
21 isa => 'Chart::OFC::Type::PosInt',
22 default => 5,
23 );
24  
25 sub type
26 4 ▶{
Subroutine type: called CC=1 SCAR=0.0
Pod undocumented
27 4 return 'scatter';
28 }
29  
30 sub _parameters_for_type
31 4 ▶{
Subroutine _parameters_for_type: called CC=2 SCAR=6.9
32 4 my $self = shift;
33  
34 4 my @p = ( $self->width(), $self->color() );
35  
36 4 ▶ push @p, ( $self->label(), $self->text_size(), $self->circle_size() )
Branch: 1 branch
BranchTrueFalseTotal
if $self->_has_label 3 1 4
37 if $self->_has_label();
38  
39 4 return @p;
40 }
41  
42 20 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44 20 __PACKAGE__->meta()->make_immutable();
45  
46 20 1;
47  
48 # ABSTRACT: A dataset represented as a scatter plot point for each value
49  
50 __END__
« OFC/Dataset/HighLowClose.pm ↑ Summary OFC/Dataset/Bar.pm »