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.
Showing
想要评论请 注册 或 登录