Stream/Iterator/File/Temp.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 21 / 21 CC 2 SCAR 3.4
CC
2
Cov
100%
get_temp
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Stream/Iterator/Base.pm ↑ Summary Stream/Sort.pm »
1 package Data::Range::Compare::Stream::Iterator::File::Temp;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use File::Temp qw/ :seekable /;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 138 ▶sub get_temp {
Subroutine get_temp: called CC=2 SCAR=6.9
Pod documented
8 138 my ($self,%args)=@_;
9 138 %args=(UNLINK=>0,%args);
10 138 ▶ $args{DIR}=$self->{tmpdir} if defined($self->{tmpdir});
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"tmpdir"} 8 130 138
11  
12 138 File::Temp->new(%args);
13 }
14  
15 4 1;
« Stream/Iterator/Base.pm ↑ Summary Stream/Sort.pm »