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   696902 use strict;
  5         30  
  5         128  
4 5     5   21 use warnings;
  5         8  
  5         102  
5 5     5   81 use 5.008001;
  5         14  
6 5     5   25 use base 'Alien::Base';
  5         10  
  5         2006  
7              
8             # ABSTRACT: Build and make available bz2
9             our $VERSION = '0.23'; # VERSION
10              
11              
12              
13              
14             sub alien_helper
15             {
16             return {
17 0     0   0 bzip2 => sub { 'bzip2' },
18 0     0 1 0 };
19             }
20              
21             # TODO: this should eventually be correctly handled by
22             # Alien::Build
23             sub config {
24 18     18 1 482357 my($class, $key) = @_;
25 18 50 33     118 return 'bz2' if $key eq 'name' || $key eq 'ffi_name';
26 18         88 return $class->SUPER::config($key);
27             }
28              
29              
30             1;
31              
32             __END__