DOM2/Element/Shape/Font.pm

filter: Statementstmt 41.1% 7 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 2 / 8 Podpod 0.0% 0 / 6 totaltotal 29.0% 9 / 31 CC 1 SCAR 5.6
CC
1
Cov
41%
stroke
2.0
font_family
2.0
font_size
2.0
CRAP 1.8
« DOM2/Element/MetaData/RDF.pm ↑ Summary DOM2/Element/Shape/Stroke.pm »
1 package SVG::DOM2::Element::Shape::Font;
2 =head1 NAME
3  
4 SVG::DOM2::Element::Shape::Font
5  
6 =head1 DESCRIPTION
7  
8 Extend a shape element with font attributes
9  
10 =cut
11  
12 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 sub stroke
16 0 ▶{
Subroutine stroke: not called CC=1 SCAR=6.9
Pod undocumented
17 0 my ($self, $p) = @_;
18 0 my %result;
19 0 $result{'family'} = $self->font_family($p);
20 0 $result{'size'} = $self->font_size($p);
21 0 return \%result;
22 }
23  
24 0 ▶sub font_family { shift->_style('font-family', 'font-family', @_); }
Subroutine font_family: not called CC=1 SCAR=6.9
Pod undocumented
25 0 ▶sub font_size { shift->_style('font-size', 'font-size', @_); }
Subroutine font_size: not called CC=1 SCAR=6.9
Pod undocumented
26 0 ▶sub font_weight { shift->_style('font-weight', 'font-weight', @_); }
Subroutine font_weight: not called CC=1 SCAR=6.9
Pod undocumented
27 0 ▶sub font_style { shift->_style('font-style', 'font-style', @_); }
Subroutine font_style: not called CC=1 SCAR=6.9
Pod undocumented
28  
29 0 ▶sub text_align { shift->_style('text-align', 'text-align', @_); }
Subroutine text_align: not called CC=1 SCAR=6.9
Pod undocumented
30  
31 1 return 1;
« DOM2/Element/MetaData/RDF.pm ↑ Summary DOM2/Element/Shape/Stroke.pm »