File Coverage

blib/lib/TableDataRole/Spec/GetRowByPos.pm
Criterion Covered Total %
statement 3 5 60.0
branch n/a
condition n/a
subroutine 1 2 50.0
pod 1 1 100.0
total 5 8 62.5


line stmt bran cond sub pod time code
1             ## no critic: TestingAndDebugging::RequireUseStrict
2             package TableDataRole::Spec::GetRowByPos;
3              
4 1     1   336168 use Role::Tiny;
  1         6720  
  1         8  
5              
6             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
7             our $DATE = '2023-11-25'; # DATE
8             our $DIST = 'TableData'; # DIST
9             our $VERSION = '0.2.6'; # VERSION
10              
11             ### mixins
12              
13             with 'Role::TinyCommons::Collection::GetItemByPos';
14              
15             ### requires
16              
17             requires 'get_row_at_pos_hashref';
18              
19             ### aliases, for convenience and clarity
20              
21             sub get_row_at_pos {
22 0     0 1   my $self = shift;
23 0           $self->get_item_at_pos(@_);
24             }
25              
26             ### implementation
27              
28             1;
29             # ABSTRACT: TableData::* that can access a row by position
30              
31             __END__