File Coverage

blib/lib/Moonshine/Bootstrap/Component/Col.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition 1 2 50.0
subroutine 5 5 100.0
pod n/a
total 21 22 95.4


line stmt bran cond sub pod time code
1             package Moonshine::Bootstrap::Component::Col;
2              
3 5     5   206719 use strict;
  5         14  
  5         220  
4 5     5   28 use warnings;
  5         9  
  5         465  
5              
6 5     5   588 use Moonshine::Magic;
  5         140236  
  5         37  
7 5     5   3564 use Moonshine::Bootstrap::Component;
  5         25  
  5         157  
8              
9             extends 'Moonshine::Bootstrap::Component';
10              
11             has(
12             col_spec => sub {
13             { tag => { default => 'div' }, };
14             }
15             );
16              
17             sub col {
18 6     6   37441 my ($self) = shift;
19              
20 6   50     69 my ( $base_args, $build_args ) = $self->validate_build(
21             {
22             params => $_[0] // {},
23             spec => $self->col_spec,
24             }
25             );
26 6         72 return Moonshine::Element->new($base_args);
27             }
28              
29             1;
30              
31             __END__