GIN/Extract/Callback.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
extract_values
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 package Search::GIN::Extract::Callback;
4  
5 our $VERSION = '0.11';
6  
7 use Moose;
8 use namespace::autoclean;
9  
10 with qw(
11 Search::GIN::Extract
12 Search::GIN::Keys::Deep
13 );
14  
15 has extract => (
16 isa => "CodeRef|Str",
17 is => "ro",
18 required => 1,
19 );
20  
21 sub extract_values {
22 my ( $self, $obj, @args ) = @_;
23  
24 my $extract = $self->extract;
25  
26 $self->process_keys( $obj->$extract($self, @args) );
27 }
28  
29 __PACKAGE__->meta->make_immutable;
30  
31 1;