Chart/QueryComponent/Simple.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 76.1% 16 / 21 CC 2 SCAR 11.0
CC
2
Cov
75%
as_query
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Chart/Legend.pm ↑ Summary Chart/Fill/LinearGradient.pm »
1 # $Id$
2  
3 package Google::Chart::QueryComponent::Simple;
4 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use URI::Escape ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 with 'Google::Chart::QueryComponent';
8  
9 1 requires qw(parameter_name parameter_value);
10  
11 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 0 ▶sub as_query {
Subroutine as_query: not called CC=2 SCAR=17.9
Pod documented
14 0 my $self = shift;
15  
16 return wantarray ?
17 0 ▶ ($self->parameter_name, $self->parameter_value) :
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 0 0
18 join('=', $self->parameter_name, URI::Escape::uri_escape($self->parameter_value))
19 ;
20 };
21  
22 1 1;
23  
24 __END__
« Chart/Legend.pm ↑ Summary Chart/Fill/LinearGradient.pm »