Clicker/Renderer/Bubble.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 72.2% 13 / 18 CC 1 SCAR 2.9
CC
1
Cov
73%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Clicker/Positioned.pm ↑ Summary Clicker/Renderer.pm »
1 package Chart::Clicker::Renderer::Bubble;
2 1 $Chart::Clicker::Renderer::Bubble::VERSION = '2.90';
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: Bubble render
6  
7 1 extends 'Chart::Clicker::Renderer::Point';
8  
9  
10 0 ▶override('draw_point', sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
11 0 my ($self, $x, $y, $series, $count) = @_;
12  
13 0 my $shape = $self->shape->scale($series->get_size($count));
14 0 $shape->origin(Geometry::Primitive::Point->new(x => $x, y => $y));
15 0 $self->path->add_primitive($shape);
16 1 });
17  
18 1 __PACKAGE__->meta->make_immutable;
19  
20 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 1 1;
23  
24 __END__
« Clicker/Positioned.pm ↑ Summary Clicker/Renderer.pm »