BCSSH/Handler/vi.pm

filter: Statementstmt 42.8% 6 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod 0.0% 0 / 1 totaltotal 35.0% 7 / 20 CC 3 SCAR 20.3
CC
3
Cov
38%
handle
12.0
__ANON__
1.1
BEGIN
1.0
CRAP 7.6
« BCSSH/Util.pm ↑ Summary BCSSH.pm »
1 package App::BCSSH::Handler::vi;
2 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 with 'App::BCSSH::Handler';
5  
6 0 ▶has gvim => (is => 'ro', default => sub { 'gvim' });
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 0 ▶sub handle {
Subroutine handle: not called CC=3 SCAR=24.8
Pod undocumented
9 0 my ($self, $send, $args) = @_;
10 0 my $files = $args->{files};
11 0 my $wait = $args->{wait};
12 0 for my $file (@$files) {
13 0 $file = 'scp://'.$self->host.'/'.$file;
14 }
15 0 ▶ system $self->gvim, ($wait ? '-f' : ()), '--', @$files;
Branch: 1 branch
BranchTrueFalseTotal
$wait ? : 0 0 0
16 0 $send->();
17 }
18  
19 1 1;
« BCSSH/Util.pm ↑ Summary BCSSH.pm »