Debian Codegraph @

lib/Test2/Harness/Runner/Spawn.pm

raw
1 package Test2::Harness::Runner::Spawn;
2 use strict;
3 use warnings;
4
5 our $VERSION = '1.000179';
6
7 use parent 'Test2::Harness::Runner::Job';
8 use Test2::Harness::Util::HashBase;
9
10 sub init {
11 my $self = shift;
12
13 $self->{+RUN} //= Test2::Harness::Runner::Spawn::Run->new();
14 }
15
16 sub out_file { sprintf('/proc/%i/fd/1', $_[0]->{+TASK}->{owner}) }
17 sub err_file { sprintf('/proc/%i/fd/2', $_[0]->{+TASK}->{owner}) }
18 sub in_file { undef }
19
20 sub args { @{$_[0]->{+TASK}->{args} //= []} }
21
22 sub job_dir { "" }
23 sub run_dir { "" }
24
25 sub use_stream { 0 }
26 sub event_uuids { 0 }
27 sub mem_usage { 0 }
28 sub io_events { 0 }
29
30 # These return lists
31 sub load_import { }
32 sub load { }
33
34 package Test2::Harness::Runner::Spawn::Run;
35
36 sub new { bless {}, shift };
37
38 sub env_vars { {} }
39
40 sub AUTOLOAD { }
41
42 1;
43
44 __END__
45
46
47 =pod
48
49 =encoding UTF-8
50
51 =head1 NAME
52
53 Test2::Harness::Runner::Spawn - Minimal job class used for spawning processes
54
55 =head1 DESCRIPTION
56
57 Do not use this directly...
58
59 =head1 SOURCE
60
61 The source code repository for Test2-Harness can be found at
62 F<http://github.com/Test-More/Test2-Harness/>.
63
64 =head1 MAINTAINERS
65
66 =over 4
67
68 =item Chad Granum E<lt>[email protected]<gt>
69
70 =back
71
72 =head1 AUTHORS
73
74 =over 4
75
76 =item Chad Granum E<lt>[email protected]<gt>
77
78 =back
79
80 =head1 COPYRIGHT
81
82 Copyright 2020 Chad Granum E<lt>[email protected]<gt>.
83
84 This program is free software; you can redistribute it and/or
85 modify it under the same terms as Perl itself.
86
87 See F<http://dev.perl.org/licenses/>
88
89 =cut