GIN/Driver/Pack/Length.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
pack_length
2.0
unpack_length
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 package Search::GIN::Driver::Pack::Length;
4  
5 our $VERSION = '0.11';
6  
7 use Moose::Role;
8 use namespace::autoclean;
9  
10 sub pack_length {
11 my ( $self, @strings ) = @_;
12 pack("(n/a*)*", @strings);
13 }
14  
15 sub unpack_length {
16 my ( $self, $string ) = @_;
17 unpack("(n/a*)*", $string);
18 }
19  
20 1;