lib/ChordPro/lib/SVGPDF/Defs.pm

filter: Statementstmt 46.6% 14 / 30 Branchbran 0.0% 0 / 8 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 36.7% 18 / 49 CC 7 SCAR 34.9
CC
7
Cov
34%
process
50.9
BEGIN
1.0
BEGIN
1.0
CRAP 32.8
« blib/lib/ChordPro/Wx/RenderDialog_wxg.pm ↑ Summary blib/lib/ChordPro/Wx/Main_wxg.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::Defs :isa(SVGPDF::Element);
9  
10 0 ▶method process () {
Subroutine process: not called CC=7 SCAR=39.3
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 $self->_dbg( "+", $self->name, " ====" );
16  
17 0 for ( $self->get_children ) {
18 0 ▶ next if ref($_) eq 'SVGPDF::TextElement';
Branch: 1 branch
BranchTrueFalseTotal
if ref $_ eq "SVGPDF::TextElement" 0 0 0
19 0 my $id = $_->atts->{id};
20 0 ▶ unless ( defined($id) ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $id) 0 0 0
21 0 ▶ warn("SVG: Missing id for ", $_->name, " in defs (skipped)\n")
Branch: 1 branch
BranchTrueFalseTotal
if $self->root->verbose and $_->name ne "style" 0 0 0
Condition0%0/3
$self->root->verbose and $_->name ne "style"
!ll&&!rl&&r
000
MC/DC0%0/2
$self->root->verbose and $_->name ne "style"
$self->root->verbose $_->name ne "style"
Truth table0%0/3
A and B
A= $self->root->verboseB= $_->name ne "style"
ABresult
0X0
100
111
22 if $self->root->verbose && $_->name ne "style";
23 0 next;
24 }
25 0 $self->_dbg( "defs: \"$id\" (", $_->name, ")" );
26 0 $self->root->defs->{ "#$id" } = $_;
27 }
28  
29 0 $self->_dbg( "-" );
30 12 }
31  
32  
33 12 1;
« blib/lib/ChordPro/Wx/RenderDialog_wxg.pm ↑ Summary blib/lib/ChordPro/Wx/Main_wxg.pm »