blib/lib/Mojo/Collection/XS.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 8 totaltotal 0.0% 0 / 49 CC 1 SCAR 6.9
CC
1
Cov
0%
c
2.0
new
2.0
while_fast
2.0
CRAP 2.0
1 package Mojo::Collection::XS;
2 use Mojo::Base 'Mojo::Collection';
3  
4 our $VERSION = '0.2';
5  
6 use XSLoader;
7 XSLoader::load(__PACKAGE__, $VERSION);
8  
9 our @EXPORT_OK = ('c');
10  
11 # Optional constructor helper
12 sub c { __PACKAGE__->new(@_) }
13  
14 sub new {
15 my $class = shift;
16 return bless [@_], ref $class || $class;
17 }
18  
19 sub while_fast { my ($self, $cb) = @_; Mojo::Collection::XS::while_fast($self, $cb); }
20 sub while_ultra { my ($self, $cb) = @_; Mojo::Collection::XS::while_ultra($self, $cb); }
21 sub each_fast { my ($self, $cb) = @_; Mojo::Collection::XS::each_fast($self, $cb); }
22 sub map_fast { my ($self, $cb) = @_; Mojo::Collection::XS::map_fast($self, $cb); }
23 sub map_ultra { my ($self, $cb) = @_; Mojo::Collection::XS::map_ultra($self, $cb); }
24 sub grep_fast { my ($self, $cb) = @_; Mojo::Collection::XS::grep_fast($self, $cb); }
25  
26 1;
27  
28 __END__