File Coverage

blib/lib/Alien/Libbz2.pm
Criterion Covered Total %
statement 14 16 87.5
branch 1 2 50.0
condition 1 3 33.3
subroutine 5 7 71.4
pod 2 2 100.0
total 23 30 76.6


line stmt bran cond sub pod time code
1             package Alien::Libbz2;
2              
3 5     5   533311 use strict;
  5         8  
  5         141  
4 5     5   19 use warnings;
  5         7  
  5         113  
5 5     5   90 use 5.008001;
  5         14  
6 5     5   17 use base 'Alien::Base';
  5         5  
  5         2094  
7              
8             # ABSTRACT: Build and make available bz2
9             our $VERSION = '0.22'; # VERSION
10              
11              
12             sub alien_helper
13             {
14             return {
15 0     0   0 bzip2 => sub { 'bzip2' },
16 0     0 1 0 };
17             }
18              
19             # TODO: this should eventually be correctly handled by
20             # Alien::Build
21             sub config {
22 19     19 1 412526 my($class, $key) = @_;
23 19 50 33     126 return 'bz2' if $key eq 'name' || $key eq 'ffi_name';
24 19         70 return $class->SUPER::config($key);
25             }
26              
27              
28             1;
29              
30             __END__