Factory/Interface/HTML/Widget/List.pm

filter: Statementstmt 47.3% 9 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod 0.0% 0 / 3 totaltotal 39.2% 11 / 28 CC 2 SCAR 10.5
CC
2
Cov
47%
render_items
6.0
__ANON__
2.0
has_content
2.0
CRAP 2.9
« Factory/Message.pm ↑ Summary Factory/Action/Meta/Attribute/Control.pm »
1 package Form::Factory::Interface::HTML::Widget::List;
2 1 $Form::Factory::Interface::HTML::Widget::List::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 => 'ul',
12 );
13  
14 has items => (
15 is => 'ro',
16 isa => 'ArrayRef[Form::Factory::Interface::HTML::Widget::ListItem]',
17 required => 1,
18 0 ▶ default => sub { [] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
19 1 );
20  
21 0 ▶sub has_content { 1 }
Subroutine has_content: not called CC=1 SCAR=6.9
Pod undocumented
22  
23 0 ▶sub render_items {
Subroutine render_items: not called CC=2 SCAR=17.9
Pod undocumented
24 0 my $self = shift;
25 0 my $content = '';
26 0 for my $item (@{ $self->items }) {
27 0 $content .= $item->render;
28 }
29 0 return $content;
30 }
31  
32 0 ▶override render_content => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
33 0 my $self = shift;
34 0 return super() . $self->render_items;
35 1 };
36  
37 130 ▶sub consume_control { }
Subroutine consume_control: called CC=1 SCAR=0.0
Pod undocumented
38  
39  
40 1 __PACKAGE__->meta->make_immutable;
41  
42 __END__
« Factory/Message.pm ↑ Summary Factory/Action/Meta/Attribute/Control.pm »