Instrumented/Form/Option.pm

filter: Statementstmt 38.4% 10 / 26 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 37.5% 3 / 8 Podpod 100% 5 / 5 totaltotal 40.0% 18 / 45 CC 4 SCAR 16.5
CC
4
Cov
31%
as_args
12.0
value
6.0
selected
2.0
CRAP 5.2
« Instrumented/Form/Hidden.pm ↑ Summary Instrumented.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package
5 XHTML::Instrumented::Form::Option;
6 2 ▶use base 'XHTML::Instrumented::Form::ElementControl';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub as_args
9 0 ▶{
Subroutine as_args: not called CC=3 SCAR=24.8
Pod documented
10 0 my $self = shift;
11 0 my %hash = %$self;
12 0 delete $hash{text};
13 0 ▶ if ($hash{disabled}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($hash{"disabled"}) 0 0 0
14 0 $hash{disabled} = 'disabled';
15 }
16 0 ▶ if ($hash{selected}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($hash{"selected"}) 0 0 0
17 0 $hash{selected} = 'selected';
18 }
19 0 %hash;
20 }
21  
22 sub selected
23 0 ▶{
Subroutine selected: not called CC=1 SCAR=6.9
Pod documented
24 0 my $self = shift;
25  
26 0 $self->{selected};
27 }
28  
29 sub disabled
30 0 ▶{
Subroutine disabled: not called CC=1 SCAR=6.9
Pod documented
31 0 my $self = shift;
32  
33 0 $self->{disabled};
34 }
35  
36 sub text
37 0 ▶{
Subroutine text: not called CC=1 SCAR=6.9
Pod documented
38 0 my $self = shift;
39  
40 0 $self->{text};
41 }
42  
43 sub value
44 0 ▶{
Subroutine value: not called CC=2 SCAR=17.9
Pod documented
45 0 my $self = shift;
46  
47 0 ▶ $self->{value} || $self->{text};
Branch: 1 branch
BranchTrueFalseTotal
$self->{"value"} or $self->{"text"} 0 0 0
48 }
49  
50  
51 2 1;
52  
53 __END__
« Instrumented/Form/Hidden.pm ↑ Summary Instrumented.pm »