File Coverage

blib/lib/Moonshine/Bootstrap/Component/PanelBody.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::PanelBody;
2              
3 6     6   224453 use Moonshine::Magic;
  6         134640  
  6         54  
4              
5             extends 'Moonshine::Bootstrap::Component';
6              
7             has(
8             panel_body_spec => sub {
9             {
10             tag => { default => 'div' },
11             class_base => { default => 'panel-body' },
12             };
13             }
14             );
15              
16             sub panel_body {
17 10     10   11789 my ($self) = shift;
18              
19 10   50     86 my ( $base_args, $build_args ) = $self->validate_build(
20             {
21             params => $_[0] // {},
22             spec => $self->panel_body_spec,
23             }
24             );
25              
26 10         117 return Moonshine::Element->new($base_args);
27             }
28              
29             1;
30              
31             __END__