Chart/GGPlot/Guide.pm

filter: Statementstmt 64.0% 32 / 50 Branchbran 0.0% 0 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 8 / 12 Podpod 0.0% 0 / 2 totaltotal 52.6% 40 / 76 CC 7 SCAR 18.1
CC
7
Cov
52%
train
12.0
_reverse_df
12.0
available_aes
9.6
CRAP 6.1
« Chart/GGPlot/Coord/Cartesian.pm ↑ Summary Chart/GGPlot/Util/_Base.pm »
1 package Chart::GGPlot::Guide;
2  
3 # ABSTRACT: Role for guide
4  
5 2 ▶use Chart::GGPlot::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Function::Parameters qw(classmethod);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $VERSION = '0.002003'; # VERSION
10  
11 2 ▶use parent qw(Chart::GGPlot::Params);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use Types::Standard qw(Str);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 2 ▶use Chart::GGPlot::Types qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
16 2 ▶use Chart::GGPlot::Util qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19 2 for my $attr (qw(title key reverse)) {
20 2 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
21 0 ▶ *{$attr} = sub { $_[0]->at($attr); }
Subroutine __ANON__: not called CC=1 SCAR=1.2
22 6 }
23  
24 # undef means "any"
25 0 ▶classmethod available_aes () { undef; }
Subroutine available_aes: not called CC=3 SCAR=22.6
Pod undocumented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 1 and Function::Parameters::_croak('Too few arguments for classmethod available_aes (expected 1, got ' . @_ . ')') 0 0 0
@_ > 1 and Function::Parameters::_croak('Too many arguments for classmethod available_aes (expected 1, got ' . @_ . ')') 0 0 0
26  
27 0 ▶method train ($scale, $aesthetics=undef) {
Subroutine train: not called CC=3 SCAR=24.8
Pod undocumented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 2 and Function::Parameters::_croak('Too few arguments for method train (expected 2, got ' . @_ . ')') 0 0 0
@_ > 3 and Function::Parameters::_croak('Too many arguments for method train (expected 3, got ' . @_ . ')') 0 0 0
28 0 return $self;
29 2 }
30  
31 0 ▶classmethod _reverse_df ($df) {
Subroutine _reverse_df: not called CC=3 SCAR=24.8
Branch: 2 branches
BranchTrueFalseTotal
@_ < 2 and Function::Parameters::_croak('Too few arguments for classmethod _reverse_df (expected 2, got ' . @_ . ')') 0 0 0
@_ > 2 and Function::Parameters::_croak('Too many arguments for classmethod _reverse_df (expected 2, got ' . @_ . ')') 0 0 0
32 0 return $df->select_rows( [ reverse( 0 .. $df->nrow - 1 ) ] );
33 2 }
34  
35 2 1;
36  
37 __END__
« Chart/GGPlot/Coord/Cartesian.pm ↑ Summary Chart/GGPlot/Util/_Base.pm »