File Coverage

blib/lib/Alien/OpenVcdiff.pm
Criterion Covered Total %
statement 12 12 100.0
branch 2 4 50.0
condition 2 6 33.3
subroutine 3 3 100.0
pod 0 1 0.0
total 19 26 73.0


line stmt bran cond sub pod time code
1             package Alien::OpenVcdiff;
2              
3             our $VERSION = '0.100';
4              
5 1     1   28813 use parent 'Alien::Base';
  1         338  
  1         5  
6              
7 1     1   87700 use strict;
  1         4  
  1         104  
8              
9             sub vcdiff_binary {
10 1     1 0 4957 my $dist_dir = Alien::OpenVcdiff->dist_dir();
11              
12             ## Installed in distribution auto/
13 1         154 my $file = $dist_dir . '/bin/vcdiff';
14 1 50 33     47 return $file if -f $file && -x $file;
15              
16             ## Built locally
17 1         4 $file = $dist_dir . '/vcdiff';
18 1 50 33     31 return $file if -f $file && -x $file;
19              
20 1         168 die "Unable to find vcdiff binary in " . $dist_dir;
21             }
22              
23             1;
24              
25              
26             __END__