1 // Code generated by MockGen. DO NOT EDIT.
2 // Source: git.fd.io/govpp.git/adapter (interfaces: StatsAPI)
4 // Package mock_adapter is a generated GoMock package.
8 adapter "git.fd.io/govpp.git/adapter"
9 gomock "github.com/golang/mock/gomock"
13 // MockStatsAPI is a mock of StatsAPI interface
14 type MockStatsAPI struct {
15 ctrl *gomock.Controller
16 recorder *MockStatsAPIMockRecorder
19 // MockStatsAPIMockRecorder is the mock recorder for MockStatsAPI
20 type MockStatsAPIMockRecorder struct {
24 // NewMockStatsAPI creates a new mock instance
25 func NewMockStatsAPI(ctrl *gomock.Controller) *MockStatsAPI {
26 mock := &MockStatsAPI{ctrl: ctrl}
27 mock.recorder = &MockStatsAPIMockRecorder{mock}
31 // EXPECT returns an object that allows the caller to indicate expected use
32 func (m *MockStatsAPI) EXPECT() *MockStatsAPIMockRecorder {
36 // Connect mocks base method
37 func (m *MockStatsAPI) Connect() error {
38 ret := m.ctrl.Call(m, "Connect")
39 ret0, _ := ret[0].(error)
43 // Connect indicates an expected call of Connect
44 func (mr *MockStatsAPIMockRecorder) Connect() *gomock.Call {
45 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Connect", reflect.TypeOf((*MockStatsAPI)(nil).Connect))
48 // Disconnect mocks base method
49 func (m *MockStatsAPI) Disconnect() error {
50 ret := m.ctrl.Call(m, "Disconnect")
51 ret0, _ := ret[0].(error)
55 // Disconnect indicates an expected call of Disconnect
56 func (mr *MockStatsAPIMockRecorder) Disconnect() *gomock.Call {
57 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Disconnect", reflect.TypeOf((*MockStatsAPI)(nil).Disconnect))
60 // DumpStats mocks base method
61 func (m *MockStatsAPI) DumpStats(arg0 ...string) ([]*adapter.StatEntry, error) {
62 varargs := []interface{}{}
63 for _, a := range arg0 {
64 varargs = append(varargs, a)
66 ret := m.ctrl.Call(m, "DumpStats", varargs...)
67 ret0, _ := ret[0].([]*adapter.StatEntry)
68 ret1, _ := ret[1].(error)
72 // DumpStats indicates an expected call of DumpStats
73 func (mr *MockStatsAPIMockRecorder) DumpStats(arg0 ...interface{}) *gomock.Call {
74 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DumpStats", reflect.TypeOf((*MockStatsAPI)(nil).DumpStats), arg0...)
77 // ListStats mocks base method
78 func (m *MockStatsAPI) ListStats(arg0 ...string) ([]string, error) {
79 varargs := []interface{}{}
80 for _, a := range arg0 {
81 varargs = append(varargs, a)
83 ret := m.ctrl.Call(m, "ListStats", varargs...)
84 ret0, _ := ret[0].([]string)
85 ret1, _ := ret[1].(error)
89 // ListStats indicates an expected call of ListStats
90 func (mr *MockStatsAPIMockRecorder) ListStats(arg0 ...interface{}) *gomock.Call {
91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStats", reflect.TypeOf((*MockStatsAPI)(nil).ListStats), arg0...)