Chart/GGPlot/Geom/Blank.pm

filter: Statementstmt 60.9% 25 / 41 Branchbran 12.5% 2 / 16 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 45.0% 32 / 71 CC 10 SCAR 29.1
CC
10
Cov
45%
__ANON__
42.0
handle_na
9.8
ggplot_functions
3.1
CRAP 18.4
« Chart/GGPlot/Stat/Count.pm ↑ Summary Chart/GGPlot/Util/Scales/_Viridis.pm »
1 package Chart::GGPlot::Geom::Blank;
2  
3 # ABSTRACT: Class for blank geom
4  
5 6 ▶use Chart::GGPlot::Class;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 6 ▶use MooseX::Singleton;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 6 our $VERSION = '0.002003'; # VERSION
10  
11 6 with qw(Chart::GGPlot::Geom);
12  
13 6 ▶use Chart::GGPlot::Layer;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 6 my $geom_blank_pod = '';
16 0 ▶my $geom_blank_code = fun (
Subroutine __ANON__: not called CC=6 SCAR=37.4
Branch: 1 branch
BranchTrueFalseTotal
@_ > 0 and @_ % 2 and Function::Parameters::_croak("Odd number of paired arguments for fun (anon)") 0 0 0
Condition0%0/3
@_ > 0 and @_ % 2
!ll&&!rl&&r
000
MC/DC0%0/2
@_ > 0 and @_ % 2
@_ > 0 @_ % 2
Truth table0%0/3
A and B
A= @_ > 0B= @_ % 2
ABresult
0X0
100
111
17 :$mapping = undef, :$data = undef,
18 :$stat = "identity", :$position = "identity",
19 :$show_legend = undef, :$inherit_aes = true,
20 %rest )
21 0 ▶{
Branch: 3 branches
BranchTrueFalseTotal
exists $rest{'stat'} ? : 0 0 0
exists $rest{'position'} ? : 0 0 0
exists $rest{'inherit_aes'} ? : 0 0 0
22 0 return Chart::GGPlot::Layer->new(
23 data => $data,
24 mapping => $mapping,
25 stat => $stat,
26 position => $position,
27 show_legend => $show_legend,
28 inherit_aes => $inherit_aes,
29 check_aes => false,
30 geom => 'blank',
31 params => \%rest,
32 );
33 6 };
34  
35 5 ▶classmethod ggplot_functions() {
Subroutine ggplot_functions: called CC=3 SCAR=11.3
Pod undocumented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 1 and Function::Parameters::_croak('Too few arguments for classmethod ggplot_functions (expected 1, got ' . @_ . ')') 0 5 5
@_ > 1 and Function::Parameters::_croak('Too many arguments for classmethod ggplot_functions (expected 1, got ' . @_ . ')') 0 5 5
36 return [
37 {
38 5 name => 'geom_blank',
39 code => $geom_blank_code,
40 pod => $geom_blank_pod,
41 }
42 ];
43 6 }
44  
45 0 ▶method handle_na ( $data, $params ) { $data; }
Subroutine handle_na: not called CC=3 SCAR=22.8
Pod undocumented
Branch: 2 branches
BranchTrueFalseTotal
@_ < 3 and Function::Parameters::_croak('Too few arguments for method handle_na (expected 3, got ' . @_ . ')') 0 0 0
@_ > 3 and Function::Parameters::_croak('Too many arguments for method handle_na (expected 3, got ' . @_ . ')') 0 0 0
46  
47 6 __PACKAGE__->meta->make_immutable();
48  
49 6 1;
50  
51 __END__
« Chart/GGPlot/Stat/Count.pm ↑ Summary Chart/GGPlot/Util/Scales/_Viridis.pm »