Chart/GGPlot/Theme/Rel.pm

filter: Statementstmt 100% 29 / 29 Branchbran 50.0% 6 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 83.6% 41 / 49 CC 7 SCAR 9.4
CC
7
Cov
85%
value
3.1
__ANON__
3.1
new
3.1
CRAP 2.6
« Chart/GGPlot/Position/Dodge2.pm ↑ Summary Chart/GGPlot/Theme/Element.pm »
1 package Chart::GGPlot::Theme::Rel;
2  
3 # ABSTRACT: To specify sizes relative to the parent
4  
5 3 ▶use Chart::GGPlot::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use Function::Parameters qw(classmethod);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our $VERSION = '0.002003'; # VERSION
9  
10 3 ▶use overload '*' => fun( $self, $other, $swap ) { $self->value * $other },
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
@_ < 3 and Function::Parameters::_croak('Too few arguments for fun (anon) (expected 3, got ' . @_ . ')') 0 5 5
@_ > 3 and Function::Parameters::_croak('Too many arguments for fun (anon) (expected 3, got ' . @_ . ')') 0 5 5
11 3 fallback => 1;
12  
13 # do not use Moose as this class is too simple.
14 84 ▶classmethod new ($x) {
Subroutine new: called CC=3 SCAR=11.2
Pod undocumented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 2 and Function::Parameters::_croak('Too few arguments for classmethod new (expected 2, got ' . @_ . ')') 0 84 84
@_ > 2 and Function::Parameters::_croak('Too many arguments for classmethod new (expected 2, got ' . @_ . ')') 0 84 84
15 84 return ( bless \$x, $class );
16 3 }
17  
18 5 ▶method value () {
Subroutine value: called CC=3 SCAR=11.3
Pod undocumented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 1 and Function::Parameters::_croak('Too few arguments for method value (expected 1, got ' . @_ . ')') 0 5 5
@_ > 1 and Function::Parameters::_croak('Too many arguments for method value (expected 1, got ' . @_ . ')') 0 5 5
19 5 return $$self;
20 3 }
21  
22 3 1;
23  
24 __END__
« Chart/GGPlot/Position/Dodge2.pm ↑ Summary Chart/GGPlot/Theme/Element.pm »