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   16305 use strict;
  1         4  
  1         37  
2 1     1   4 use warnings;
  1         1  
  1         50  
3             package Search::GIN::Indexable;
4              
5             our $VERSION = '0.11';
6              
7 1     1   4 use Moose::Role;
  1         1  
  1         9  
8 1     1   3958 use namespace::autoclean;
  1         2  
  1         8  
9              
10             requires 'gin_extract_values';
11              
12             sub gin_id {
13 0     0 0   my $self = shift;
14 0           return $self;
15             }
16              
17             sub gin_compare_values {
18 0     0 0   my ( $self, $one, $two ) = @_;
19 0           $one cmp $two;
20             }
21              
22             sub gin_consistent {
23 0     0 0   my ( $self, $index, $query, @args ) = @_;
24 0           $query->gin_consistent($index, $self, @args);
25             }
26              
27             1;