lib/ChordPro/lib/SVGPDF/Line.pm

filter: Statementstmt 43.7% 14 / 32 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 42.8% 18 / 42 CC 3 SCAR 16.5
CC
3
Cov
39%
process
10.9
BEGIN
1.0
BEGIN
1.0
CRAP 5.2
« lib/ChordPro/Chords/Transpose.pm ↑ Summary lib/ChordPro/lib/SVGPDF/Circle.pm »
1 #! perl
2  
3 12 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use Object::Pad;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 12 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 class SVGPDF::Line :isa(SVGPDF::Element);
9  
10 0 ▶method process () {
Subroutine process: not called CC=3 SCAR=23.9
Pod undocumented
11 0 my $atts = $self->atts;
12 0 my $xo = $self->xo;
13 0 ▶ return if $atts->{omit}; # for testing/debugging.
Branch: 1 branch
BranchTrueFalseTotal
if $atts->{"omit"} 0 0 0
14  
15 0 my ( $x1, $y1, $x2, $y2, $tf ) =
16 $self->get_params( $atts, qw( x1:H y1:V x2:H y2:V transform:s ) );
17  
18 0 $self->_dbg( $self->name, " x1=$x1 y1=$y1 x2=$x2 y2=$y2" );
19 0 $self->_dbg( "+ xo save" );
20 0 $xo->save;
21  
22 0 $self->set_graphics;
23 0 ▶ $self->set_transform($tf) if $tf;
Branch: 1 branch
BranchTrueFalseTotal
if $tf 0 0 0
24  
25 0 $xo->move( $x1, $y1 );
26 0 $xo->line( $x2, $y2 );
27 0 $self->_paintsub->();
28  
29 0 $self->_dbg( "- xo restore" );
30 0 $xo->restore;
31 0 $self->css_pop;
32 12 }
33  
34  
35 12 1;
« lib/ChordPro/Chords/Transpose.pm ↑ Summary lib/ChordPro/lib/SVGPDF/Circle.pm »