blib/lib/Fetch/Loop.pm

filter: Statementstmt 83.3% 15 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 76.0% 19 / 25 CC 2 SCAR 9.8
CC
2
Cov
75%
_fh_for_fd
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« blib/lib/Fetch/Loop/AnyEvent.pm ↑ Summary blib/arch/Fetch/Install/Files.pm »
1 package Fetch::Loop;
2  
3 80 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 80 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 80 our $VERSION = '0.29';
7  
8 80 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 80 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
11 80 FT_READ => 0x1,
12 FT_WRITE => 0x2,
13 80 };
14 80 our @EXPORT_OK = qw(FT_READ FT_WRITE);
15  
16 0 ▶sub _fh_for_fd {
Subroutine _fh_for_fd: not called CC=2 SCAR=17.9
17 0 my ($self, $fd) = @_;
18 0 ▶ open my $fh, '+<&', $fd or die "Fetch::Loop: cannot alias fd $fd: $!";
Branch: 1 branch
BranchTrueFalseTotal
open my $fh, "+<&", $fd or die "Fetch::Loop: cannot alias fd ${fd}: $!" 0 0 0
19 0 return $fh;
20 }
21  
22 80 1;
23  
24 __END__
« blib/lib/Fetch/Loop/AnyEvent.pm ↑ Summary blib/arch/Fetch/Install/Files.pm »