File Coverage

blib/lib/Moonshine/Bootstrap/Component/ListedGroupItemText.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition 1 2 50.0
subroutine 2 2 100.0
pod n/a
total 9 10 90.0


line stmt bran cond sub pod time code
1             package Moonshine::Bootstrap::Component::ListedGroupItemText;
2              
3 7     7   327791 use Moonshine::Magic;
  7         137979  
  7         73  
4              
5             extends 'Moonshine::Bootstrap::Component';
6              
7             has(
8             listed_group_item_text_spec => sub {
9             {
10             tag => { default => 'p' },
11             class_base => { default => 'list-group-item-text' },
12             };
13             }
14             );
15              
16             sub listed_group_item_text {
17 6     6   16686 my ($self) = shift;
18              
19 6   50     59 my ( $base_args, $build_args ) = $self->validate_build(
20             {
21             params => $_[0] // {},
22             spec => $self->listed_group_item_text_spec,
23             }
24             );
25              
26 6         79 return Moonshine::Element->new($base_args);
27             }
28              
29             1;
30              
31             __END__