add NetConnections to the mockPS.

This commit is contained in:
Shirou WAKAYAMA 2015-10-08 22:55:34 +09:00 committed by Cameron Sparr
parent dc38e448bd
commit 99b1a3071d
1 changed files with 8 additions and 0 deletions

View File

@ -77,3 +77,11 @@ func (m *MockPS) DockerStat() ([]*DockerContainerStat, error) {
return r0, r1
}
func (m *MockPS) NetConnections() ([]net.NetConnectionStat, error) {
ret := m.Called()
r0 := ret.Get(0).([]net.NetConnectionStat)
r1 := ret.Error(1)
return r0, r1
}