add NetConnections to the mockPS.

This commit is contained in:
Shirou WAKAYAMA 2015-10-08 22:55:34 +09:00
parent 23eb08be15
commit 4a6f1ebdea
1 changed files with 8 additions and 0 deletions

View File

@ -77,3 +77,11 @@ func (m *MockPS) DockerStat() ([]*DockerContainerStat, error) {
return r0, r1 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
}