From 99b1a3071d1b95dff7ae776eab9ef249eda9e5b1 Mon Sep 17 00:00:00 2001 From: Shirou WAKAYAMA Date: Thu, 8 Oct 2015 22:55:34 +0900 Subject: [PATCH] add NetConnections to the mockPS. --- plugins/system/mock_PS.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/system/mock_PS.go b/plugins/system/mock_PS.go index 70d0f20d5..602e34ee9 100644 --- a/plugins/system/mock_PS.go +++ b/plugins/system/mock_PS.go @@ -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 +}