2015-04-01 16:34:32 +00:00
|
|
|
package system
|
|
|
|
|
2015-04-04 00:22:31 +00:00
|
|
|
import (
|
|
|
|
"github.com/influxdb/tivan/plugins/system/ps/load"
|
|
|
|
"github.com/stretchr/testify/mock"
|
|
|
|
)
|
2015-04-01 16:34:32 +00:00
|
|
|
|
|
|
|
type MockPS struct {
|
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MockPS) LoadAvg() (*load.LoadAvgStat, error) {
|
|
|
|
ret := m.Called()
|
|
|
|
|
|
|
|
r0 := ret.Get(0).(*load.LoadAvgStat)
|
|
|
|
r1 := ret.Error(1)
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|