blib/lib/Archive/Libarchive/Match.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Archive/Libarchive/EntryLinkResolver.pm ↑ Summary
1 package Archive::Libarchive::Match;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Archive::Libarchive::Lib;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use experimental qw( signatures );
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use parent qw( Archive::Libarchive::Archive );
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # ABSTRACT: Libarchive match archive class
11 our $VERSION = '0.10'; # VERSION
12  
13 my $ffi = Archive::Libarchive::Lib->ffi;
14  
15  
16 $ffi->mangler(sub ($name) { "archive_match_$name" });
17  
18 $ffi->attach( new => [] => 'opaque' => sub {
19 my($xsub, $class) = @_;
20 my $ptr = $xsub->();
21 bless { ptr => $ptr }, $class;
22 });
23  
24 # TODO: warn if doesn't return ARCHIVE_OK
25 $ffi->attach( [ free => 'DESTROY' ] => ['archive_match'] => 'void' );
26  
27  
28 require Archive::Libarchive::Lib::Match unless $Archive::Libarchive::no_gen;
29  
30 1;
31  
32 __END__
« blib/lib/Archive/Libarchive/EntryLinkResolver.pm ↑ Summary