BCSSH/Command/scp.pm

filter: Statementstmt 50.0% 12 / 24 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 45.4% 15 / 33 CC 4 SCAR 24.7
CC
4
Cov
43%
run
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.9
« BCSSH/Options.pm ↑ Summary BCSSH/Util.pm »
1 package App::BCSSH::Command::scp;
2 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use App::BCSSH::Options;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 with Options;
5 1 with 'App::BCSSH::Client';
6  
7 1 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub run {
Subroutine run: not called CC=4 SCAR=30.0
Pod undocumented
10 0 my $self = shift;
11 0 my @files = @{ $self->args };
12 0 ▶ @files or die "At least one file must be specified!\n";
Branch: 1 branch
BranchTrueFalseTotal
@files or die "At least one file must be specified!\n" 0 0 0
13 0 for my $file (@files) {
14 0 $file = File::Spec->rel2abs($file);
15 }
16 0 $self->command({ files => \@files });
17 0 my $sock = $self->agent_socket;
18 0 $| = 1;
19 0 ▶ while ($sock->sysread(my $buf, 8192)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($sock->sysread(my $buf, 8192)) 0 0 0
20 0 print $buf;
21 }
22 0 return 1;
23 }
24  
25 1 1;
26 __END__
« BCSSH/Options.pm ↑ Summary BCSSH/Util.pm »