lib/Reaction/UI/Widget/Image.pm

filter: Statementstmt 75.0% 9 / 12 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 57.8% 11 / 19 CC 3 SCAR 20.3
CC
3
Cov
56%
__ANON__
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.6
« lib/Reaction/UI/Controller.pm ↑ Summary lib/Reaction/UI/Widget/Value.pm »
1 package Reaction::UI::Widget::Image;
2  
3 1 ▶use Reaction::UI::WidgetClass;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::clean -except => [ qw(meta) ];
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶before fragment widget {
Subroutine __ANON__: not called CC=3 SCAR=24.8
7 0 my $vp = $_{viewport};
8 0 ▶ my $attrs = {
Branch: 2 branches
BranchTrueFalseTotal
$vp->has_width ? : 0 0 0
$vp->has_height ? : 0 0 0
9 src => $vp->uri,
10 ($vp->has_width ? (width => $vp->width) : ()),
11 ($vp->has_height ? (height => $vp->height) : ()),
12 };
13 0 arg img_attrs => attrs( $attrs );
14 1 };
15  
16 1 __PACKAGE__->meta->make_immutable;
17  
18 1 1;
19  
20 __END__;
« lib/Reaction/UI/Controller.pm ↑ Summary lib/Reaction/UI/Widget/Value.pm »