LibTmux/CommandResult.pm

filter: Statementstmt 87.5% 7 / 8 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 85.7% 6 / 7 Podpod 100% 6 / 6 totaltotal 75.0% 21 / 28 CC 3 SCAR 7.7
CC
3
Cov
69%
success
4.1
stderr
2.0
BEGIN
1.0
CRAP 2.2
« LibTmux/Operation.pm ↑ Summary LibTmux/Client.pm »
1 package LibTmux::CommandResult;
2 8 ▶use v5.44;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 13 ▶sub stdout ($self) { $self->{stdout} }
Subroutine stdout: called CC=1 SCAR=0.0
Pod documented
4 0 ▶sub stderr ($self) { $self->{stderr} }
Subroutine stderr: not called CC=1 SCAR=6.9
Pod documented
5 12 ▶sub exit_code ($self) { $self->{exit_code} }
Subroutine exit_code: called CC=1 SCAR=0.0
Pod documented
6 12 ▶sub signal ($self) { $self->{signal} }
Subroutine signal: called CC=1 SCAR=0.0
Pod documented
7 12 ▶sub raw_status ($self) { $self->{raw_status} }
Subroutine raw_status: called CC=1 SCAR=0.0
Pod documented
8  
9 12 ▶sub success ($self) {
Subroutine success: called CC=3 SCAR=14.2
Pod documented
10 12 ▶ defined($self->raw_status) && $self->exit_code == 0 && $self->signal == 0;
Branch: 1 branch
BranchTrueFalseTotal
defined $self->raw_status and $self->exit_code == 0 and $self->signal == 0 12 0 12
Condition33%1/3
defined $self->raw_status and $self->exit_code == 0
!ll&&!rl&&r
0012
MC/DC0%0/2
defined $self->raw_status and $self->exit_code == 0
defined $self->raw_status $self->exit_code == 0
Truth table33%1/3
A and B
A= defined $self->raw_statusB= $self->exit_code == 0
ABresult
0X0
100
111
11 }
12  
13 =head1 NAME
14  
15 LibTmux::CommandResult - Completed or partial subprocess outcome
16  
17 =head1 METHODS
18  
19 =head2 stdout
20  
21 Return retained stdout octets, possibly empty. No text decoding occurs.
22  
23 =head2 stderr
24  
25 Return separately retained stderr octets, possibly empty.
26  
27 =head2 exit_code
28  
29 Return an exit code or undef when no child status is known.
30  
31 =head2 signal
32  
33 Return a terminating signal number, zero for ordinary exit, or undef for unknown status.
34  
35 =head2 raw_status
36  
37 Return the POSIX wait status or undef when unavailable.
38  
39 =head2 success
40  
41 Return true only when known status proves ordinary exit zero. Unknown status is never success.
42  
43 =head1 OWNERSHIP
44  
45 Readers are local and do not mutate the result or perform I/O. A lifecycle
46 exception may expose a bounded partial result; it does not imply rollback or
47 command completion. See L<LibTmux::Transport/run> and L<LibTmux::X>.
48  
49 =cut
« LibTmux/Operation.pm ↑ Summary LibTmux/Client.pm »