stats: golang vpp_if_stats_client
[vpp.git] / extras / vpp_if_stats / statsmock.go
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 (
8         adapter "git.fd.io/govpp.git/adapter"
9         gomock "github.com/golang/mock/gomock"
10         reflect "reflect"
11 )
12
13 // MockStatsAPI is a mock of StatsAPI interface
14 type MockStatsAPI struct {
15         ctrl     *gomock.Controller
16         recorder *MockStatsAPIMockRecorder
17 }
18
19 // MockStatsAPIMockRecorder is the mock recorder for MockStatsAPI
20 type MockStatsAPIMockRecorder struct {
21         mock *MockStatsAPI
22 }
23
24 // NewMockStatsAPI creates a new mock instance
25 func NewMockStatsAPI(ctrl *gomock.Controller) *MockStatsAPI {
26         mock := &MockStatsAPI{ctrl: ctrl}
27         mock.recorder = &MockStatsAPIMockRecorder{mock}
28         return mock
29 }
30
31 // EXPECT returns an object that allows the caller to indicate expected use
32 func (m *MockStatsAPI) EXPECT() *MockStatsAPIMockRecorder {
33         return m.recorder
34 }
35
36 // Connect mocks base method
37 func (m *MockStatsAPI) Connect() error {
38         ret := m.ctrl.Call(m, "Connect")
39         ret0, _ := ret[0].(error)
40         return ret0
41 }
42
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))
46 }
47
48 // Disconnect mocks base method
49 func (m *MockStatsAPI) Disconnect() error {
50         ret := m.ctrl.Call(m, "Disconnect")
51         ret0, _ := ret[0].(error)
52         return ret0
53 }
54
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))
58 }
59
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)
65         }
66         ret := m.ctrl.Call(m, "DumpStats", varargs...)
67         ret0, _ := ret[0].([]*adapter.StatEntry)
68         ret1, _ := ret[1].(error)
69         return ret0, ret1
70 }
71
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...)
75 }
76
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)
82         }
83         ret := m.ctrl.Call(m, "ListStats", varargs...)
84         ret0, _ := ret[0].([]string)
85         ret1, _ := ret[1].(error)
86         return ret0, ret1
87 }
88
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...)
92 }