Factory/Control/Checkbox.pm

filter: Statementstmt 91.6% 11 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 86.6% 13 / 15 CC 1 SCAR 2.9
CC
1
Cov
92%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Factory/Feature/Control/Required.pm ↑ Summary Factory/Control/Button.pm »
1 package Form::Factory::Control::Checkbox;
2 1 $Form::Factory::Control::Checkbox::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 checkbox 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->false_value },
Subroutine __ANON__: not called CC=1 SCAR=6.9
22 1 );
23  
24  
25 1 ▶use constant default_isa => 'Str';
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 1 __PACKAGE__->meta->make_immutable;
28  
29 __END__
« Factory/Feature/Control/Required.pm ↑ Summary Factory/Control/Button.pm »