File Coverage

lib/Class/Usul/Response/IPC.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Class::Usul::Response::IPC;
2              
3 15     15   17724 use namespace::autoclean;
  15         60  
  15         248  
4              
5 15     15   2062 use Moo;
  15         61  
  15         262  
6 15     15   9526 use Class::Usul::Types qw( Int Object Str Undef );
  15         73  
  15         335  
7              
8             has 'core' => is => 'ro', isa => Int, default => 0;
9             has 'harness' => is => 'ro', isa => Object | Undef;
10             has 'out' => is => 'ro', isa => Str, default => q();
11             has 'pid' => is => 'ro', isa => Int | Undef;
12             has 'rv' => is => 'ro', isa => Int, default => 0;
13             has 'sig' => is => 'ro', isa => Int | Undef;
14             has 'stderr' => is => 'ro', isa => Str, default => q();
15             has 'stdout' => is => 'ro', isa => Str, default => q();
16              
17             1;
18              
19             __END__
20              
21             =pod
22              
23             =head1 Name
24              
25             Class::Usul::Response::IPC - Response class for running external programs
26              
27             =head1 Synopsis
28              
29             use Class::Usul::Response::IPC;
30              
31             my $result = Class::Usul::Response::IPC->new();
32              
33             =head1 Description
34              
35             Response class returned by L<Class::Usul::IPC/run_cmd> and
36             L<Class::Usul::IPC/popen>
37              
38             =head1 Configuration and Environment
39              
40             This class defined these attributes:
41              
42             =over 3
43              
44             =item C<core>
45              
46             True if external commands core dumped
47              
48             =item C<harness>
49              
50             The L<IPC::Run> harness object if one was used
51              
52             =item C<out>
53              
54             Processed output from the command
55              
56             =item C<pid>
57              
58             The id of the child process
59              
60             =item C<sig>
61              
62             Signal that caused the program to terminate
63              
64             =item C<rv>
65              
66             The return value of from running the command
67              
68             =item C<stderr>
69              
70             The standard error output from the command
71              
72             =item C<stdout>
73              
74             The standard output from the command
75              
76             =back
77              
78             =head1 Subroutines/Methods
79              
80             None
81              
82             =head1 Diagnostics
83              
84             None
85              
86             =head1 Dependencies
87              
88             =over 3
89              
90             =item L<Moo>
91              
92             =back
93              
94             =head1 Incompatibilities
95              
96             There are no known incompatibilities in this module
97              
98             =head1 Bugs and Limitations
99              
100             There are no known bugs in this module.
101             Please report problems to the address below.
102             Patches are welcome
103              
104             =head1 Author
105              
106             Peter Flanigan, C<< <pjfl@cpan.org> >>
107              
108             =head1 License and Copyright
109              
110             Copyright (c) 2017 Peter Flanigan. All rights reserved
111              
112             This program is free software; you can redistribute it and/or modify it
113             under the same terms as Perl itself. See L<perlartistic>
114              
115             This program is distributed in the hope that it will be useful,
116             but WITHOUT WARRANTY; without even the implied warranty of
117             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
118              
119             =cut
120              
121             # Local Variables:
122             # mode: perl
123             # tab-width: 3
124             # End: