All/Temp.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 96.0% 24 / 25 SCAR 6.9
CC
2
Cov
95%
temp
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« All/STDIO.pm ↑ Summary All/String.pm »
1 57 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package IO::All::Temp;
3  
4 57 ▶use IO::All::File -base;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub temp {
7 2 ▶ my $self = shift;
Subroutine temp: called CC=2 SCAR=7.0
Pod documented
8 2 bless $self, __PACKAGE__;
9 2 ▶ my $temp_file = IO::File::new_tmpfile()
Branch: 1 branch
BranchTrueFalseTotal
my $temp_file = IO::File::new_tmpfile() or $self->throw("Can't create temporary file") 0 2 2
10 or $self->throw("Can't create temporary file");
11 2 $self->io_handle($temp_file);
12 2 $self->_error_check;
13 2 $self->autoclose(0);
14 2 $self->is_open(1);
15 2 return $self;
16 }
17  
18 57 1;
« All/STDIO.pm ↑ Summary All/String.pm »