SVGPDF/Circle.pm

filter: Statementstmt 100% 34 / 34 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 93.3% 42 / 45 CC 3 SCAR 5.6
CC
3
Cov
95%
process
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« SVGPDF/G.pm ↑ Summary SVGPDF/Polygon.pm »
1 #! perl
2  
3 2 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Object::Pad;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶class SVGPDF::Circle :isa(SVGPDF::Element);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 20 ▶method process () {
Subroutine process: called CC=3 SCAR=11.0
Pod undocumented
11 20 my $atts = $self->atts;
12 20 my $xo = $self->xo;
13 20 ▶ return if $atts->{omit}; # for testing/debugging.
Branch: 1 branch
BranchTrueFalseTotal
if $atts->{"omit"} 0 20 20
14  
15 20 my ( $cx, $cy, $r, $tf ) =
16 $self->get_params( $atts, qw( cx:H cy:V r:U transform:s ) );
17  
18 20 $self->_dbg( $self->name, " cx=$cx cy=$cy r=$r" );
19 20 $self->_dbg( "+ xo save" );
20 20 $xo->save;
21  
22 20 $self->set_graphics;
23 20 ▶ $self->set_transform($tf) if $tf;
Branch: 1 branch
BranchTrueFalseTotal
if $tf 0 20 20
24 20 $xo->circle( $cx, $cy, $r );
25 20 $self->_paintsub->();
26  
27 20 $self->_dbg( "- xo restore" );
28 20 $xo->restore;
29 20 $self->css_pop;
30 2 }
31  
32  
33 2 1;
« SVGPDF/G.pm ↑ Summary SVGPDF/Polygon.pm »