blib/lib/Net/Appliance/Session/Async.pm

filter: Statementstmt 42.8% 6 / 14 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 25.0% 1 / 4 Podpod 0.0% 0 / 3 totaltotal 24.1% 7 / 29 SCAR 22.5
CC
4
Cov
30%
put
12.0
gather
6.0
say
2.0
CRAP 9.5
« blib/lib/Net/Appliance/Session/Transport.pm ↑ Summary Build »
1 package Net::Appliance::Session::Async;
2 1 { $Net::Appliance::Session::Async::VERSION = '4.300004' }
3  
4 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub put {
7 0 ▶ my ($self, $cmd, $opts) = @_;
Subroutine put: not called CC=3 SCAR=24.8
Pod undocumented
8 0 ▶ $opts ||= {};
Condition0%0/2
$opts ||= {}
l!l
00
MC/DC0%0/1
$opts ||= {}
$opts
Truth table0%0/2
A
A= $opts
Aresult
11
00
9 return $self->nci->transport->put($cmd,
10 0 ▶ ($opts->{no_ors} ? () : $self->nci->transport->ors));
Branch: 1 branch
BranchTrueFalseTotal
$opts->{'no_ors'} ? : 0 0 0
11 }
12  
13 0 ▶sub say { return $_[0]->put( $_[1] ) }
Subroutine say: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 sub gather {
16 0 ▶ my ($self, $opts) = @_;
Subroutine gather: not called CC=2 SCAR=17.9
Pod undocumented
17 0 ▶ $opts ||= {};
Condition0%0/2
$opts ||= {}
l!l
00
MC/DC0%0/1
$opts ||= {}
$opts
Truth table0%0/2
A
A= $opts
Aresult
11
00
18 0 $opts->{no_ors} = 1; # force no newline
19 0 return $self->cmd('', $opts);
20 }
21  
22 1 1;
« blib/lib/Net/Appliance/Session/Transport.pm ↑ Summary Build »