lib/ChordPro/lib/SVGPDF/Style.pm

filter: Statementstmt 50.0% 14 / 28 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 45.0% 18 / 40 CC 5 SCAR 27.2
CC
5
Cov
41%
process
26.6
BEGIN
1.0
BEGIN
1.0
CRAP 15.2
« lib/ChordPro/Delegate/SVG.pm ↑ Summary blib/lib/ChordPro/Output/LaTeX.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::Style :isa(SVGPDF::Element);
9  
10 0 ▶method process () {
Subroutine process: not called CC=5 SCAR=32.8
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 my $cdata = "";
18 0 for my $t ( $self->get_children ) {
19 0 ▶ croak("# ASSERT: non-text child in style")
Branch: 1 branch
BranchTrueFalseTotal
unless ref $t eq "SVGPDF::TextElement" 0 0 0
20 unless ref($t) eq "SVGPDF::TextElement";
21 0 $cdata .= $t->content;
22 }
23 0 ▶ if ( $cdata =~ /\S/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($cdata =~ /\S/u) 0 0 0
24 0 $self->root->css->read_string($cdata);
25 }
26  
27 # Ok?
28  
29 0 $self->_dbg( "-" );
30 12 }
31  
32  
33 12 1;
« lib/ChordPro/Delegate/SVG.pm ↑ Summary blib/lib/ChordPro/Output/LaTeX.pm »