DOM2/Element/Shape/Fill.pm

filter: Statementstmt 46.6% 7 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 0.0% 0 / 3 totaltotal 39.1% 9 / 23 CC 1 SCAR 4.7
CC
1
Cov
47%
fill
2.0
fill_color
2.0
fill_opacity
2.0
CRAP 1.6
« DOM2/Element/Shape/Stroke.pm ↑ Summary DOM2/Element/Shape.pm »
1 package SVG::DOM2::Element::Shape::Fill;
2 =head1 NAME
3  
4 SVG::DOM2::Element::Shape::Fill
5  
6 =head1 DESCRIPTION
7  
8 Extend a shape element with fill 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 =head1 METHODS
16  
17 fill - fill style, has color and opacity output
18  
19 =cut
20 sub fill
21 0 ▶{
Subroutine fill: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my ($self) = @_;
23 0 my %result;
24 0 $result{'color'} = $self->fill_color;
25 0 $result{'opacity'} = $self->fill_opacity;
26 0 return \%result;
27 }
28  
29 0 ▶sub fill_color { shift->_style('fill-color','fill', @_); }
Subroutine fill_color: not called CC=1 SCAR=6.9
Pod undocumented
30 sub fill_opacity
31 0 ▶{
Subroutine fill_opacity: not called CC=1 SCAR=6.9
Pod undocumented
32 0 my $self = shift;
33 0 $self->_style('fill-opacity','fill-opacity', @_);
34 }
35  
36 1 return 1;
« DOM2/Element/Shape/Stroke.pm ↑ Summary DOM2/Element/Shape.pm »