Khonsu/Shape/Box.pm

filter: Statementstmt 100% 8 / 8 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 1 totaltotal 84.6% 11 / 13 CC 2 SCAR 5.2
CC
2
Cov
90%
shape
2.0
BEGIN
1.0
CRAP 1.7
« Khonsu.pm ↑ Summary Khonsu/Form.pm »
1 package Khonsu::Shape::Box;
2  
3 3 ▶use parent 'Khonsu::Shape';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub shape {
6 124 ▶ my ($self, $file, $shape, %args) = @_;
Subroutine shape: called CC=2 SCAR=7.0
Pod undocumented
7 124 my $box = $shape->rect($args{x}, $file->page->h - ($args{y} + $args{h}), $args{w}, $args{h});
8 124 ▶ $box->fillcolor($args{fill_colour}) unless $args{fill_colour} eq 'transparent';
Branch: 1 branch
BranchTrueFalseTotal
unless $args{"fill_colour"} eq "transparent" 124 0 124
9 124 $box->fill;
10 }
11  
12 3 1;
« Khonsu.pm ↑ Summary Khonsu/Form.pm »