SVGPDF/Ellipse.pm

filter: Statementstmt 100% 31 / 31 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 92.6% 38 / 41 CC 3 SCAR 6.2
CC
3
Cov
94%
process
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« SVGPDF/Style.pm ↑ Summary SVGPDF/Line.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 class SVGPDF::Ellipse :isa(SVGPDF::Element);
9  
10 14 ▶method process () {
Subroutine process: called CC=3 SCAR=11.0
Pod undocumented
11 14 my $atts = $self->atts;
12 14 my $xo = $self->xo;
13 14 ▶ return if $atts->{omit}; # for testing/debugging.
Branch: 1 branch
BranchTrueFalseTotal
if $atts->{"omit"} 0 14 14
14  
15 14 my ( $cx, $cy, $rx, $ry, $tf ) =
16 $self->get_params( $atts, qw( cx:H cy:V rx:H ry:V transform:s ) );
17  
18 14 $self->_dbg( $self->name, " cx=$cx cy=$cy rx=$rx ry=$ry" );
19 14 $self->_dbg( "+ xo save" );
20 14 $xo->save;
21  
22 14 $self->set_graphics;
23 14 ▶ $self->set_transform($tf) if $tf;
Branch: 1 branch
BranchTrueFalseTotal
if $tf 0 14 14
24 14 $xo->ellipse( $cx, $cy, $rx, $ry );
25 14 $self->_paintsub->();
26  
27 14 $self->_dbg( "- xo restore" );
28 14 $xo->restore;
29 14 $self->css_pop;
30 2 }
31  
32  
33 2 1;
« SVGPDF/Style.pm ↑ Summary SVGPDF/Line.pm »