You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/common
Shirou WAKAYAMA fc513b6f9a 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.
10 years ago
..
common.go proces[darwin]: change exec.Command to interface to enable mocking. 10 years ago
common_darwin.go process: use syscall in common on darwin 10 years ago
common_freebsd.go move CallSysCall to common/common_freebsd 10 years ago
common_test.go common: Rename StringContains to StringsContains and add StringsHas. 10 years ago
common_windows.go use StackExchange/wmi instead of invoking wmic process. 10 years ago