2020-03-07 19:14:49 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2023-10-02 19:32:41 +00:00
|
|
|
// Source: gitlab.com/manytask/itmo-go/private/retryupdate/kvapi (interfaces: Client)
|
2020-03-07 19:14:49 +00:00
|
|
|
|
|
|
|
// Package retryupdate_test is a generated GoMock package.
|
|
|
|
package retryupdate_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2023-10-02 19:32:41 +00:00
|
|
|
kvapi "gitlab.com/manytask/itmo-go/private/retryupdate/kvapi"
|
2020-03-07 19:14:49 +00:00
|
|
|
reflect "reflect"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockClient is a mock of Client interface
|
|
|
|
type MockClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockClientMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockClientMockRecorder is the mock recorder for MockClient
|
|
|
|
type MockClientMockRecorder struct {
|
|
|
|
mock *MockClient
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockClient creates a new mock instance
|
|
|
|
func NewMockClient(ctrl *gomock.Controller) *MockClient {
|
|
|
|
mock := &MockClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockClient) EXPECT() *MockClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get mocks base method
|
|
|
|
func (m *MockClient) Get(arg0 *kvapi.GetRequest) (*kvapi.GetResponse, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Get", arg0)
|
|
|
|
ret0, _ := ret[0].(*kvapi.GetResponse)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get indicates an expected call of Get
|
|
|
|
func (mr *MockClientMockRecorder) Get(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set mocks base method
|
|
|
|
func (m *MockClient) Set(arg0 *kvapi.SetRequest) (*kvapi.SetResponse, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Set", arg0)
|
|
|
|
ret0, _ := ret[0].(*kvapi.SetResponse)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set indicates an expected call of Set
|
|
|
|
func (mr *MockClientMockRecorder) Set(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockClient)(nil).Set), arg0)
|
|
|
|
}
|