lib/Reaction/UI/Widget/Field/Mutable/ChooseOne.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod n/a totaltotal 46.8% 15 / 32 CC 3 SCAR 13.2
CC
3
Cov
50%
__ANON__
6.0
__ANON__
6.0
__ANON__
2.0
CRAP 3.8
« lib/Reaction/UI/ViewPort.pm ↑ Summary script/rclass_back_to_moose.pl »
1 package Reaction::UI::Widget::Field::Mutable::ChooseOne;
2  
3 1 ▶use Reaction::UI::WidgetClass;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use namespace::clean -except => [ qw(meta) ];
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 extends 'Reaction::UI::Widget::Field::Mutable';
7  
8  
9  
10 0 ▶implements fragment option_is_required {
Subroutine __ANON__: not called CC=2 SCAR=17.9
11 0 ▶ if ($_{viewport}->value_is_required) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_{'viewport'}->value_is_required) { } 0 0 0
12 0 render 'option_is_required_yes';
13 } else {
14 0 render 'option_is_required_no';
15 }
16 1 };
17  
18 0 ▶implements fragment option_list {
Subroutine __ANON__: not called CC=1 SCAR=6.9
19 0 render option => over $_{viewport}->value_choices;
20 1 };
21  
22 0 ▶implements fragment option {
Subroutine __ANON__: not called CC=1 SCAR=6.9
23 0 arg option_name => $_->{name};
24 0 arg option_value => $_->{value};
25 1 };
26  
27 0 ▶implements fragment option_is_selected {
Subroutine __ANON__: not called CC=2 SCAR=17.9
28 0 ▶ if ($_{viewport}->is_current_value($_->{value})) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_{'viewport'}->is_current_value($_->{'value'})) { } 0 0 0
29 0 render 'option_is_selected_yes';
30 } else {
31 0 render 'option_is_selected_no';
32 }
33 1 };
34  
35 1 __PACKAGE__->meta->make_immutable;
36  
37  
38 1 1;
39  
40 __END__;
« lib/Reaction/UI/ViewPort.pm ↑ Summary script/rclass_back_to_moose.pl »