type Default struct{}
func (o Default) FindProcess(pid int) (ps.Process, error)
func (o Default) PidExists(pid int) (bool, error)
type Fake struct {
ProcessId int
ParentId int
// PidTable is a map of pid => executable name of existing processes
PidTable map[int]string
}
func (o Fake) Executable() string
func (o Fake) FindProcess(pid int) (ps.Process, error)
func (o Fake) PPid() int
func (o Fake) Pid() int
func (o Fake) PidExists(pid int) (bool, error)
type System interface {
FindProcess(pid int) (ps.Process, error)
PidExists(pid int) (bool, error)
}