PurePerl/Protocol/File.pm

filter: Statementstmt 72.0% 18 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 71.8% 23 / 32 CC 1 SCAR 1.5
CC
1
Cov
72%
connect_socket
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« PurePerl/Protocol/SSH.pm ↑ Summary PurePerl/DirectoryEntry.pm »
1 package Git::PurePerl::Protocol::File;
2 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use IPC::Open2;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 extends 'Git::PurePerl::Protocol';
9  
10 4 has 'path' => ( is => 'ro', isa => 'Str', required => 1 );
11  
12 0 ▶sub connect_socket {
Subroutine connect_socket: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my $self = shift;
14  
15 0 my ($read, $write);
16 0 my $pid = open2(
17 $read, $write,
18 "git-upload-pack",
19 $self->path,
20 );
21  
22 0 $read->autoflush(1);
23 0 $write->autoflush(1);
24 0 $self->read_socket($read);
25 0 $self->write_socket($write);
26 }
27  
28 4 1;
« PurePerl/Protocol/SSH.pm ↑ Summary PurePerl/DirectoryEntry.pm »