blob: 172176fa7445b8b0272e59d444e15cb9566b6d8c [file] [log] [blame]
Koren Lev19ca78f2018-11-21 18:46:54 +02001// 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.
5package main
6
7import (
Adrian Villin5a4c7a92024-09-26 11:24:34 +02008 reflect "reflect"
9
Koren Lev19ca78f2018-11-21 18:46:54 +020010 adapter "git.fd.io/govpp.git/adapter"
11 gomock "github.com/golang/mock/gomock"
Koren Lev19ca78f2018-11-21 18:46:54 +020012)
13
14// MockStatsAPI is a mock of StatsAPI interface
15type MockStatsAPI struct {
16 ctrl *gomock.Controller
17 recorder *MockStatsAPIMockRecorder
18}
19
20// MockStatsAPIMockRecorder is the mock recorder for MockStatsAPI
21type MockStatsAPIMockRecorder struct {
22 mock *MockStatsAPI
23}
24
25// NewMockStatsAPI creates a new mock instance
26func 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
33func (m *MockStatsAPI) EXPECT() *MockStatsAPIMockRecorder {
34 return m.recorder
35}
36
37// Connect mocks base method
38func (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
45func (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
50func (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
57func (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
62func (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
74func (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
79func (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
91func (mr *MockStatsAPIMockRecorder) ListStats(arg0 ...interface{}) *gomock.Call {
92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStats", reflect.TypeOf((*MockStatsAPI)(nil).ListStats), arg0...)
93}