blib/lib/Search/GIN/SelfIDs.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 16 | 16 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 22 | 24 | 91.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 4 | 4 | 1824 | use strict; | |||
4 | 6 | ||||||
4 | 144 | ||||||
2 | 4 | 4 | 18 | use warnings; | |||
4 | 5 | ||||||
4 | 231 | ||||||
3 | package Search::GIN::SelfIDs; | ||||||
4 | |||||||
5 | our $VERSION = '0.11'; | ||||||
6 | |||||||
7 | 4 | 4 | 18 | use Moose::Role; | |||
4 | 6 | ||||||
4 | 27 | ||||||
8 | 4 | 4 | 15769 | use namespace::autoclean; | |||
4 | 8 | ||||||
4 | 26 | ||||||
9 | |||||||
10 | sub ids_to_objects { | ||||||
11 | 13 | 13 | 0 | 28 | my ( $self, @ids ) = @_; | ||
12 | 13 | 44 | return @ids; | ||||
13 | } | ||||||
14 | |||||||
15 | sub objects_to_ids { | ||||||
16 | 10 | 10 | 0 | 167 | my ( $self, @objs ) = @_; | ||
17 | 10 | 37 | return @objs; | ||||
18 | } | ||||||
19 | |||||||
20 | 1; |