OFC/AxisLabel.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 35 / 35 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OFC/Dataset/GlassBar.pm ↑ Summary
1 package Chart::OFC::AxisLabel;
2 23 $Chart::OFC::AxisLabel::VERSION = '0.12';
3 23 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 23 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 23 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 23 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 23 ▶use Chart::OFC::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 23 with 'Chart::OFC::Role::OFCDataLines';
11  
12 23 has label =>
13 ( is => 'ro',
14 isa => 'Str',
15 required => 1,
16 );
17  
18 23 has text_color =>
19 ( is => 'ro',
20 isa => 'Chart::OFC::Type::Color',
21 coerce => 1,
22 default => '#000000',
23 );
24  
25 23 has text_size =>
26 ( is => 'ro',
27 isa => 'Chart::OFC::Type::Size',
28 default => 20,
29 );
30  
31 sub _ofc_data_lines
32 26 ▶{
Subroutine _ofc_data_lines: called CC=1 SCAR=0.0
33 26 my $self = shift;
34 26 my $name = shift;
35  
36 26 return $self->_data_line( $name . '_legend', $self->label(), $self->text_size(), $self->text_color() );
37 }
38  
39 23 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 23 __PACKAGE__->meta()->make_immutable();
42  
43 23 1;
44  
45  
46 # ABSTRACT: A label for an axis
47  
48 __END__
« OFC/Dataset/GlassBar.pm ↑ Summary