Koren Lev | 19ca78f | 2018-11-21 18:46:54 +0200 | [diff] [blame] | 1 | // Code generated by MockGen. DO NOT EDIT. |
| 2 | // Source: git.fd.io/govpp.git/adapter (interfaces: StatsAPI) |
| 3 | |
| 4 | // Package mock_adapter is a generated GoMock package. |
| 5 | package main |
| 6 | |
| 7 | import ( |
Adrian Villin | 5a4c7a9 | 2024-09-26 11:24:34 +0200 | [diff] [blame] | 8 | reflect "reflect" |
| 9 | |
Koren Lev | 19ca78f | 2018-11-21 18:46:54 +0200 | [diff] [blame] | 10 | adapter "git.fd.io/govpp.git/adapter" |
| 11 | gomock "github.com/golang/mock/gomock" |
Koren Lev | 19ca78f | 2018-11-21 18:46:54 +0200 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | // MockStatsAPI is a mock of StatsAPI interface |
| 15 | type MockStatsAPI struct { |
| 16 | ctrl *gomock.Controller |
| 17 | recorder *MockStatsAPIMockRecorder |
| 18 | } |
| 19 | |
| 20 | // MockStatsAPIMockRecorder is the mock recorder for MockStatsAPI |
| 21 | type MockStatsAPIMockRecorder struct { |
| 22 | mock *MockStatsAPI |
| 23 | } |
| 24 | |
| 25 | // NewMockStatsAPI creates a new mock instance |
| 26 | func NewMockStatsAPI(ctrl *gomock.Controller) *MockStatsAPI { |
| 27 | mock := &MockStatsAPI{ctrl: ctrl} |
| 28 | mock.recorder = &MockStatsAPIMockRecorder{mock} |
| 29 | return mock |
| 30 | } |
| 31 | |
| 32 | // EXPECT returns an object that allows the caller to indicate expected use |
| 33 | func (m *MockStatsAPI) EXPECT() *MockStatsAPIMockRecorder { |
| 34 | return m.recorder |
| 35 | } |
| 36 | |
| 37 | // Connect mocks base method |
| 38 | func (m *MockStatsAPI) Connect() error { |
| 39 | ret := m.ctrl.Call(m, "Connect") |
| 40 | ret0, _ := ret[0].(error) |
| 41 | return ret0 |
| 42 | } |
| 43 | |
| 44 | // Connect indicates an expected call of Connect |
| 45 | func (mr *MockStatsAPIMockRecorder) Connect() *gomock.Call { |
| 46 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Connect", reflect.TypeOf((*MockStatsAPI)(nil).Connect)) |
| 47 | } |
| 48 | |
| 49 | // Disconnect mocks base method |
| 50 | func (m *MockStatsAPI) Disconnect() error { |
| 51 | ret := m.ctrl.Call(m, "Disconnect") |
| 52 | ret0, _ := ret[0].(error) |
| 53 | return ret0 |
| 54 | } |
| 55 | |
| 56 | // Disconnect indicates an expected call of Disconnect |
| 57 | func (mr *MockStatsAPIMockRecorder) Disconnect() *gomock.Call { |
| 58 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Disconnect", reflect.TypeOf((*MockStatsAPI)(nil).Disconnect)) |
| 59 | } |
| 60 | |
| 61 | // DumpStats mocks base method |
| 62 | func (m *MockStatsAPI) DumpStats(arg0 ...string) ([]*adapter.StatEntry, error) { |
| 63 | varargs := []interface{}{} |
| 64 | for _, a := range arg0 { |
| 65 | varargs = append(varargs, a) |
| 66 | } |
| 67 | ret := m.ctrl.Call(m, "DumpStats", varargs...) |
| 68 | ret0, _ := ret[0].([]*adapter.StatEntry) |
| 69 | ret1, _ := ret[1].(error) |
| 70 | return ret0, ret1 |
| 71 | } |
| 72 | |
| 73 | // DumpStats indicates an expected call of DumpStats |
| 74 | func (mr *MockStatsAPIMockRecorder) DumpStats(arg0 ...interface{}) *gomock.Call { |
| 75 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DumpStats", reflect.TypeOf((*MockStatsAPI)(nil).DumpStats), arg0...) |
| 76 | } |
| 77 | |
| 78 | // ListStats mocks base method |
| 79 | func (m *MockStatsAPI) ListStats(arg0 ...string) ([]string, error) { |
| 80 | varargs := []interface{}{} |
| 81 | for _, a := range arg0 { |
| 82 | varargs = append(varargs, a) |
| 83 | } |
| 84 | ret := m.ctrl.Call(m, "ListStats", varargs...) |
| 85 | ret0, _ := ret[0].([]string) |
| 86 | ret1, _ := ret[1].(error) |
| 87 | return ret0, ret1 |
| 88 | } |
| 89 | |
| 90 | // ListStats indicates an expected call of ListStats |
| 91 | func (mr *MockStatsAPIMockRecorder) ListStats(arg0 ...interface{}) *gomock.Call { |
| 92 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStats", reflect.TypeOf((*MockStatsAPI)(nil).ListStats), arg0...) |
| 93 | } |