mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-02 22:17:08 +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.