mirror of https://github.com/shirou/gopsutil
proces[darwin]: change exec.Command to interface to enable mocking.
Add common.invoker interface to mock exec.Command. common.FakeInvoker returns expected file if exists instead of invoke exec.Command. Currenly, mocking is enabled only process.Pids(). I will expand to other funcs incrementally.pull/79/head
parent
026d4a3519
commit
fc513b6f9a
@ -0,0 +1,10 @@
|
||||
PID
|
||||
245
|
||||
247
|
||||
248
|
||||
249
|
||||
254
|
||||
262
|
||||
264
|
||||
265
|
||||
267
|
Loading…
Reference in New Issue