Factory/Interface/HTML/Widget/Label.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod n/a totaltotal 78.5% 11 / 14 CC 1 SCAR 4.1
CC
1
Cov
83%
__ANON__
2.0
BEGIN
1.0
CRAP 1.5
« Factory/Interface/HTML/Widget/ListItem.pm ↑ Summary Factory/Feature/Control/Trim.pm »
1 package Form::Factory::Interface::HTML::Widget::Label;
2 1 $Form::Factory::Interface::HTML::Widget::Label::VERSION = '0.022';
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 extends qw( Form::Factory::Interface::HTML::Widget::Element );
6  
7 # ABSTRACT: HTML interface widget helper
8  
9  
10 1 has '+tag_name' => (
11 default => 'label',
12 );
13  
14 1 has for => (
15 is => 'ro',
16 isa => 'Str',
17 required => 1,
18 );
19  
20 1 has '+content' => (
21 required => 1,
22 );
23  
24 0 ▶override more_attributes => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
25 0 my $self = shift;
26  
27 return {
28 0 for => $self->for,
29 };
30 1 };
31  
32  
33 1 __PACKAGE__->meta->make_immutable;
34  
35 __END__
« Factory/Interface/HTML/Widget/ListItem.pm ↑ Summary Factory/Feature/Control/Trim.pm »