PRT/Collector/Files.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 90.9% 20 / 22 CC 3 SCAR 6.9
CC
3
Cov
100%
collect
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« PRT/Util/DestinationFile.pm ↑ Summary PRT/Command/ListFiles.pm »
1 package App::PRT::Collector::Files;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 7 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
6 7 my ($class, @files) = @_;
7  
8 7 bless {
9 files => [@files],
10 }, $class;
11 }
12  
13 6 ▶sub collect {
Subroutine collect: called CC=3 SCAR=11.0
Pod undocumented
14 6 my ($self) = @_;
15  
16 6 for my $file (@{$self->{files}}) {
17 11 ▶ die "$file does not exist" unless -f $file;
Branch: 1 branch
BranchTrueFalseTotal
unless -f $file 1 10 11
18 }
19  
20 5 $self->{files};
21 }
22  
23 3 1;
« PRT/Util/DestinationFile.pm ↑ Summary PRT/Command/ListFiles.pm »