Subprocess/Running/Delegate/MonitorHandle.pm

filter: Statementstmt 100% 14 / 14 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 3 totaltotal 84.0% 21 / 25 CC 2 SCAR 2.6
CC
2
Cov
94%
completion_hook
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Subprocess/Easy.pm ↑ Summary Subprocess/Job/Delegate/Pty.pm »
1 package AnyEvent::Subprocess::Running::Delegate::MonitorHandle;
2 48 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 48 $AnyEvent::Subprocess::Running::Delegate::MonitorHandle::VERSION = '1.102912';
4 }
5 # ABSTRACT: Running part of the MonitorHandle delegate
6 48 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 48 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 47 with 'AnyEvent::Subprocess::Running::Delegate';
10  
11 47 has '_job_delegate' => (
12 is => 'ro',
13 isa => 'AnyEvent::Subprocess::Job::Delegate::MonitorHandle',
14 handles => ['_run_callbacks'],
15 required => 1,
16 );
17  
18 4 ▶sub build_events {}
Subroutine build_events: called CC=1 SCAR=0.0
Pod undocumented
19 1 ▶sub build_done_delegates {}
Subroutine build_done_delegates: called CC=1 SCAR=0.0
Pod undocumented
20  
21 1 ▶sub completion_hook {
Subroutine completion_hook: called CC=2 SCAR=7.1
Pod undocumented
22 1 my ($self, $running, $args) = @_;
23  
24 my $leftover =
25 1 delete $args->{run}->delegate($self->_job_delegate->handle)->handle->{rbuf};
26  
27 1 ▶ $self->_run_callbacks( $leftover ) if $leftover;
Branch: 1 branch
BranchTrueFalseTotal
if $leftover 1 0 1
28 }
29  
30 47 __PACKAGE__->meta->make_immutable;
31  
32 47 1;
33  
34 __END__
« Subprocess/Easy.pm ↑ Summary Subprocess/Job/Delegate/Pty.pm »