DOM2/Element/Shape/Stroke.pm

filter: Statementstmt 41.1% 7 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod 0.0% 0 / 4 totaltotal 33.3% 9 / 27 CC 1 SCAR 5.1
CC
1
Cov
41%
stroke
2.0
stroke_color
2.0
stroke_width
2.0
CRAP 1.7
« DOM2/Element/Shape/Font.pm ↑ Summary DOM2/Element/Shape/Fill.pm »
1 package SVG::DOM2::Element::Shape::Stroke;
2 =head1 NAME
3  
4 SVG::DOM2::Element::Shape::Stroke
5  
6 =head1 DESCRIPTION
7  
8 Extend a shape element with stroke 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{'color'} = $self->stroke_color($p);
20 0 $result{'opacity'} = $self->stroke_opacity($p);
21 0 $result{'width'} = $self->stroke_width($p);
22 0 return \%result;
23 }
24  
25 0 ▶sub stroke_color { shift->_style('stroke-color', 'stroke', @_); }
Subroutine stroke_color: not called CC=1 SCAR=6.9
Pod undocumented
26 0 ▶sub stroke_width { shift->_style('stroke-width', 'stroke-width', @_); }
Subroutine stroke_width: not called CC=1 SCAR=6.9
Pod undocumented
27 sub stroke_opacity
28 0 ▶{
Subroutine stroke_opacity: not called CC=1 SCAR=6.9
Pod undocumented
29 0 my ($self) = @_;
30 0 $self->_style('stroke-opacity', 'stroke-opacity', @_);
31 }
32  
33 1 return 1;
« DOM2/Element/Shape/Font.pm ↑ Summary DOM2/Element/Shape/Fill.pm »