mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00

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.