Chart/GGPlot/Range.pm

filter: Statementstmt 100% 23 / 23 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 94.1% 32 / 34 CC 3 SCAR 5.8
CC
3
Cov
93%
reset
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« Chart/GGPlot/Coord/Flip.pm ↑ Summary Chart/GGPlot/Setup.pm »
1 package Chart::GGPlot::Range;
2  
3 # ABSTRACT: The role for range
4  
5 8 ▶use Chart::GGPlot::Role qw(:pdl);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 8 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 8 our $VERSION = '0.002003'; # VERSION
9  
10 8 ▶use Types::PDL qw(Piddle PiddleFromAny);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 8 ▶use Chart::GGPlot::Types qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14  
15 8 has range => (
16 is => 'rw',
17 isa => Piddle->plus_coercions(PiddleFromAny),
18 coerce => 1,
19 builder => '_build_range'
20 );
21  
22 34 ▶sub _build_range { null; }
Subroutine _build_range: called CC=1 SCAR=0.0
23  
24  
25 11 ▶method reset () {
Subroutine reset: called CC=3 SCAR=11.3
Pod documented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 1 and Function::Parameters::_croak('Too few arguments for method reset (expected 1, got ' . @_ . ')') 0 11 11
@_ > 1 and Function::Parameters::_croak('Too many arguments for method reset (expected 1, got ' . @_ . ')') 0 11 11
26 11 $self->range( $self->_build_range );
27 8 }
28  
29  
30 8 requires 'train';
31  
32 8 1;
33  
34 __END__
« Chart/GGPlot/Coord/Flip.pm ↑ Summary Chart/GGPlot/Setup.pm »