Factory/Control/Button.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 88.8% 16 / 18 CC 1 SCAR 2.2
CC
1
Cov
93%
__ANON__
2.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.2
« Factory/Control/Checkbox.pm ↑ Summary Factory/Interface/HTML/Widget/Span.pm »
1 package Form::Factory::Control::Button;
2 1 $Form::Factory::Control::Button::VERSION = '0.022';
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 with qw(
6 Form::Factory::Control
7 Form::Factory::Control::Role::BooleanValue
8 Form::Factory::Control::Role::Labeled
9 );
10  
11 # ABSTRACT: The button control
12  
13  
14 1 has '+value' => (
15 isa => 'Str',
16 );
17  
18 has '+default_value' => (
19 isa => 'Str',
20 lazy => 1,
21 0 ▶ default => sub { shift->label },
Subroutine __ANON__: not called CC=1 SCAR=6.9
22 1 );
23  
24  
25 has '+true_value' => (
26 lazy => 1,
27 3 ▶ default => sub { shift->label },
Subroutine __ANON__: called CC=1 SCAR=0.0
28 1 );
29  
30  
31 1 ▶use constant default_isa => 'Str';
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 1 __PACKAGE__->meta->make_immutable;
34  
35 __END__
« Factory/Control/Checkbox.pm ↑ Summary Factory/Interface/HTML/Widget/Span.pm »