Chart/GGPlot/Global.pm

filter: Statementstmt 81.8% 27 / 33 Branchbran 25.0% 2 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 72.9% 35 / 48 CC 5 SCAR 15.2
CC
5
Cov
71%
_build_theme_current
12.0
_build_element_tree
3.1
BEGIN
1.0
CRAP 4.6
« Chart/GGPlot/Geom/Polygon.pm ↑ Summary Chart/GGPlot/ScalesList.pm »
1 package Chart::GGPlot::Global;
2  
3 # ABSTRACT: Various global variables and settings
4  
5 3 ▶use Chart::GGPlot::Class;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use MooseX::Singleton;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = '0.002003'; # VERSION
10  
11 3 ▶use Module::Load;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use Types::Standard qw(ConsumerOf InstanceOf);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14  
15 3 has theme_current => (
16 is => 'rw',
17 isa => ConsumerOf ['Chart::GGPlot::Theme'],
18 lazy => 1,
19 builder => '_build_theme_current'
20 );
21  
22 0 ▶method _build_theme_current () {
Subroutine _build_theme_current: not called CC=3 SCAR=24.8
Branch: 2 branches
BranchTrueFalseTotal
@_ < 1 and Function::Parameters::_croak('Too few arguments for method _build_theme_current (expected 1, got ' . @_ . ')') 0 0 0
@_ > 1 and Function::Parameters::_croak('Too many arguments for method _build_theme_current (expected 1, got ' . @_ . ')') 0 0 0
23 0 load Chart::GGPlot::Theme::Defaults, qw(theme_grey);
24 0 return theme_grey();
25 3 }
26  
27  
28 3 has element_tree => (
29 is => 'rw',
30 isa => ConsumerOf ['Chart::GGPlot::Theme::ElementTree'],
31 lazy => 1,
32 builder => '_build_element_tree',
33 );
34  
35 1 ▶method _build_element_tree () {
Subroutine _build_element_tree: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
@_ < 1 and Function::Parameters::_croak('Too few arguments for method _build_element_tree (expected 1, got ' . @_ . ')') 0 1 1
@_ > 1 and Function::Parameters::_croak('Too many arguments for method _build_element_tree (expected 1, got ' . @_ . ')') 0 1 1
36 1 load Chart::GGPlot::Theme::ElementTree;
37 1 return Chart::GGPlot::Theme::ElementTree->default_element_tree();
38 3 }
39  
40 3 1;
41  
42 __END__
« Chart/GGPlot/Geom/Polygon.pm ↑ Summary Chart/GGPlot/ScalesList.pm »