File Coverage

blib/lib/Moonshine/Bootstrap/Component/SeparatorLi.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::SeparatorLi;
2              
3 16     16   195280 use Moonshine::Magic;
  16         135526  
  16         128  
4              
5             extends 'Moonshine::Bootstrap::Component';
6              
7             has(
8             separator_li_spec => sub {
9             {
10             tag => { default => 'li' },
11             role => { default => 'separator' },
12             class_base => { default => 'divider' },
13             };
14             }
15             );
16              
17             sub separator_li {
18 17     17   7822 my ($self) = shift;
19              
20 17   50     215 my ( $base_args, $build_args ) = $self->validate_build(
21             {
22             params => $_[0] // {},
23             spec => $self->separator_li_spec,
24             }
25             );
26              
27 17         217 return Moonshine::Element->new($base_args);
28             }
29              
30             1;
31              
32             __END__