Parts/Debian.pm

filter: Statementstmt 100% 21 / 21 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 31 / 31 CC 2 SCAR 2.5
CC
2
Cov
100%
run_parts_command
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Parts/Perl.pm ↑ Summary
1 package Run::Parts::Debian;
2  
3 # ABSTRACT: Perl interface to Debian's run-parts tool
4  
5 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 5 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 5 ▶use Run::Parts::Common;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 5 our $VERSION = '0.09'; # VERSION generated by DZP::OurPkgVersion
12  
13  
14 5 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
15 5 my $self = {};
16 5 bless($self, shift);
17 5 $self->{dir} = shift;
18  
19 5 return $self;
20 }
21  
22  
23 26 ▶sub run_parts_command {
Subroutine run_parts_command: called CC=2 SCAR=6.9
Pod documented
24 26 my $self = shift;
25 26 my $rp_cmd = shift;
26  
27 my $command =
28 "/bin/run-parts " .
29 ($rp_cmd ? "'--$rp_cmd'" : '') .
30 26 ▶ " '".$self->{dir}."'";
Branch: 1 branch
BranchTrueFalseTotal
$rp_cmd ? : 22 4 26
31  
32 26 return chomped_lines(`$command`);
33 }
34  
35  
36 5 q<debian/rules>; # End of Run::Parts::Debian
37  
38 __END__
« Parts/Perl.pm ↑ Summary