Mock/Win32/Process.pm

filter: Statementstmt 51.6% 16 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 17.6% 3 / 17 Podpod 0.0% 0 / 14 totaltotal 30.6% 19 / 62 CC 1 SCAR 6.0
CC
1
Cov
52%
Create
2.0
Open
2.0
KillProcess
2.0
CRAP 1.8
« Mock/Win32/EventLog.pm ↑ Summary Mock/Win32CORE.pm »
1 package # hide from PAUSE
2 Win32::Process;
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 {
7 1 ▶ no strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 $VERSION = "0.01";
9 1 @ISA = qw(Exporter);
10 1 @EXPORT = qw(
11 CREATE_DEFAULT_ERROR_MODE
12 CREATE_NEW_CONSOLE
13 CREATE_NEW_PROCESS_GROUP
14 CREATE_NO_WINDOW
15 CREATE_SEPARATE_WOW_VDM
16 CREATE_SUSPENDED
17 CREATE_UNICODE_ENVIRONMENT
18 DEBUG_ONLY_THIS_PROCESS
19 DEBUG_PROCESS
20 DETACHED_PROCESS
21 HIGH_PRIORITY_CLASS
22 IDLE_PRIORITY_CLASS
23 INFINITE
24 NORMAL_PRIORITY_CLASS
25 REALTIME_PRIORITY_CLASS
26 THREAD_PRIORITY_ABOVE_NORMAL
27 THREAD_PRIORITY_BELOW_NORMAL
28 THREAD_PRIORITY_ERROR_RETURN
29 THREAD_PRIORITY_HIGHEST
30 THREAD_PRIORITY_IDLE
31 THREAD_PRIORITY_LOWEST
32 THREAD_PRIORITY_NORMAL
33 THREAD_PRIORITY_TIME_CRITICAL
34 );
35  
36 1 @EXPORT_OK = qw(
37 STILL_ACTIVE
38 );
39 }
40  
41 1 *get_Win32_IPC_HANDLE = \&get_process_handle;
42  
43  
44 #
45 # Create()
46 # ------
47 0 ▶sub Create {
Subroutine Create: not called CC=1 SCAR=6.9
Pod undocumented
48 0 my ($obj_r, $appname, $cmdline, $iflags, $cflags, $curdir) = @_;
49 # XXX
50 }
51  
52  
53 #
54 # Open()
55 # ----
56 0 ▶sub Open {
Subroutine Open: not called CC=1 SCAR=6.9
Pod undocumented
57 0 my ($obj_r, $pid, $iflags) = @_;
58 # XXX
59 }
60  
61  
62 #
63 # KillProcess()
64 # -----------
65 0 ▶sub KillProcess {
Subroutine KillProcess: not called CC=1 SCAR=6.9
Pod undocumented
66 0 my ($pid, $exitcode) = @_;
67 # XXX
68 }
69  
70  
71 #
72 # Suspend()
73 # -------
74 0 ▶sub Suspend {
Subroutine Suspend: not called CC=1 SCAR=6.9
Pod undocumented
75 0 my ($obj) = @_;
76 # XXX
77 }
78  
79  
80 #
81 # Resume()
82 # ------
83 0 ▶sub Resume {
Subroutine Resume: not called CC=1 SCAR=6.9
Pod undocumented
84 0 my ($obj) = @_;
85 # XXX
86 }
87  
88  
89 #
90 # Kill()
91 # ----
92 0 ▶sub Kill {
Subroutine Kill: not called CC=1 SCAR=6.9
Pod undocumented
93 0 my ($obj, $exitcode) = @_;
94 # XXX
95 }
96  
97  
98 #
99 # GetPriorityClass()
100 # ----------------
101 0 ▶sub GetPriorityClass {
Subroutine GetPriorityClass: not called CC=1 SCAR=6.9
Pod undocumented
102 0 my ($obj, $class) = @_;
103 # XXX
104 }
105  
106  
107 #
108 # SetPriorityClass()
109 # ----------------
110 0 ▶sub SetPriorityClass {
Subroutine SetPriorityClass: not called CC=1 SCAR=6.9
Pod undocumented
111 0 my ($obj, $class) = @_;
112 # XXX
113 }
114  
115  
116 #
117 # GetProcessAffinityMask()
118 # ----------------------
119 0 ▶sub GetProcessAffinityMask {
Subroutine GetProcessAffinityMask: not called CC=1 SCAR=6.9
Pod undocumented
120 0 my ($obj, $procmask, $systmask) = @_;
121 # XXX
122 }
123  
124  
125 #
126 # SetProcessAffinityMask()
127 # ----------------------
128 0 ▶sub SetProcessAffinityMask {
Subroutine SetProcessAffinityMask: not called CC=1 SCAR=6.9
Pod undocumented
129 0 my ($obj, $procmask) = @_;
130 # XXX
131 }
132  
133  
134 #
135 # GetExitCode()
136 # -----------
137 0 ▶sub GetExitCode {
Subroutine GetExitCode: not called CC=1 SCAR=6.9
Pod undocumented
138 0 my ($obj, $exitcode) = @_;
139 # XXX
140 }
141  
142  
143 #
144 # Wait()
145 # ----
146 0 ▶sub Wait {
Subroutine Wait: not called CC=1 SCAR=6.9
Pod undocumented
147 0 my ($obj, $timeout) = @_;
148 # XXX
149 }
150  
151  
152 #
153 # GetProcessID()
154 # ------------
155 0 ▶sub GetProcessID {
Subroutine GetProcessID: not called CC=1 SCAR=6.9
Pod undocumented
156 0 my ($obj) = @_;
157 # XXX
158 0 return 0
159 }
160  
161  
162 #
163 # GetCurrentProcessID()
164 # -------------------
165 0 ▶sub GetCurrentProcessID {
Subroutine GetCurrentProcessID: not called CC=1 SCAR=6.9
Pod undocumented
166 0 return $$
167 }
168  
169  
170 1 1
« Mock/Win32/EventLog.pm ↑ Summary Mock/Win32CORE.pm »