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 | 2177 | use strict; | |||
4 | 5 | ||||||
4 | 160 | ||||||
2 | 4 | 4 | 17 | use warnings; | |||
4 | 4 | ||||||
4 | 211 | ||||||
3 | package Search::GIN::SelfIDs; | ||||||
4 | our $VERSION = '0.10'; | ||||||
5 | 4 | 4 | 17 | use Moose::Role; | |||
4 | 5 | ||||||
4 | 29 | ||||||
6 | 4 | 4 | 16715 | use namespace::autoclean; | |||
4 | 9 | ||||||
4 | 31 | ||||||
7 | |||||||
8 | sub ids_to_objects { | ||||||
9 | 13 | 13 | 0 | 29 | my ( $self, @ids ) = @_; | ||
10 | 13 | 38 | return @ids; | ||||
11 | } | ||||||
12 | |||||||
13 | sub objects_to_ids { | ||||||
14 | 10 | 10 | 0 | 155 | my ( $self, @objs ) = @_; | ||
15 | 10 | 37 | return @objs; | ||||
16 | } | ||||||
17 | |||||||
18 | 1; |