File Coverage

blib/lib/Search/GIN/Indexable.pm
Criterion Covered Total %
statement 12 18 66.6
branch n/a
condition n/a
subroutine 4 7 57.1
pod 0 3 0.0
total 16 28 57.1


line stmt bran cond sub pod time code
1 1     1   17751 use strict;
  1         2  
  1         38  
2 1     1   5 use warnings;
  1         1  
  1         57  
3             package Search::GIN::Indexable;
4             our $VERSION = '0.10';
5 1     1   6 use Moose::Role;
  1         1  
  1         7  
6 1     1   4207 use namespace::autoclean;
  1         2  
  1         10  
7              
8             requires 'gin_extract_values';
9              
10             sub gin_id {
11 0     0 0   my $self = shift;
12 0           return $self;
13             }
14              
15             sub gin_compare_values {
16 0     0 0   my ( $self, $one, $two ) = @_;
17 0           $one cmp $two;
18             }
19              
20             sub gin_consistent {
21 0     0 0   my ( $self, $index, $query, @args ) = @_;
22 0           $query->gin_consistent($index, $self, @args);
23             }
24              
25             1;