OFC/Dataset/HighLowClose.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/SketchBar.pm ↑ Summary OFC/Dataset/Scatter.pm »
1 package Chart::OFC::Dataset::HighLowClose;
2 21 $Chart::OFC::Dataset::HighLowClose::VERSION = '0.12';
3 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 21 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 21 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 21 ▶use Chart::OFC::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 21 extends 'Chart::OFC::Dataset::Line';
11  
12 21 has values =>
13 ( is => 'ro',
14 isa => 'Chart::OFC::Type::NonEmptyArrayRefOfArrayRefsOfNumsOrUndefs',
15 required => 1,
16 auto_deref => 1,
17 );
18  
19 21 has opacity =>
20 ( is => 'ro',
21 isa => 'Chart::OFC::Type::Opacity',
22 default => '80',
23 );
24  
25 sub type
26 4 ▶{
Subroutine type: called CC=1 SCAR=0.0
Pod undocumented
27 4 return 'hlc';
28 }
29  
30 sub _parameters_for_type
31 8 ▶{
Subroutine _parameters_for_type: called CC=2 SCAR=6.9
32 8 my $self = shift;
33  
34 8 my @p = ( $self->opacity(), $self->width(), $self->color() );
35  
36 8 ▶ push @p, ( $self->label(), $self->text_size() )
Branch: 1 branch
BranchTrueFalseTotal
if $self->_has_label 6 2 8
37 if $self->_has_label();
38  
39 8 return @p;
40 }
41  
42 21 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44 21 __PACKAGE__->meta()->make_immutable();
45  
46 21 1;
47  
48 # ABSTRACT: A dataset represented as an hlc line for each value
49  
50 __END__
« OFC/Dataset/SketchBar.pm ↑ Summary OFC/Dataset/Scatter.pm »