File Coverage

blib/lib/FFI/Raw.pm
Criterion Covered Total %
statement 25 25 100.0
branch n/a
condition n/a
subroutine 9 9 100.0
pod 2 2 100.0
total 36 36 100.0


line stmt bran cond sub pod time code
1             package FFI::Raw;
2              
3 6     6   1270475 use strict;
  6         56  
  6         175  
4 6     6   30 use warnings;
  6         12  
  6         179  
5 6     6   30 use base qw( FFI::Platypus::Legacy::Raw );
  6         9  
  6         3081  
6 6     6   229242 use FFI::Raw::Callback;
  6         17  
  6         154  
7 6     6   2309 use FFI::Raw::Ptr;
  6         16  
  6         162  
8 6     6   2461 use FFI::Raw::MemPtr;
  6         16  
  6         311  
9              
10             # ABSTRACT: Perl bindings to the portable FFI library (libffi)
11             our $VERSION = '0.32';
12              
13             foreach my $function (qw( memptr callback void int uint short ushort long ulong int64 uint64 char uchar float double str ptr ))
14             {
15 6     6   52 no strict 'refs';
  6         13  
  6         648  
16             *$function = *{"FFI::Platypus::Legacy::Raw::$function"};
17             }
18              
19             sub platypus
20             {
21 1     1 1 686 require Carp;
22 1         96 Carp::croak("platypus not available for FFI::Raw interface");
23             }
24              
25             sub attach
26             {
27 1     1 1 5959 require Carp;
28 1         226 Carp::croak("attach not available for FFI::Raw interface");
29             }
30              
31             1;
32              
33             __END__