SVGPDF/Line.pm

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