butler/internal/modules/storage/mocks/interface.go

78 lines
2.4 KiB
Go
Raw Permalink Normal View History

2023-08-13 13:22:15 +00:00
// Code generated by MockGen. DO NOT EDIT.
// Source: interface.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
storage "git.3crabs.ru/VLADIMIR/butler/internal/modules/storage"
gomock "go.uber.org/mock/gomock"
)
// MockIStorage is a mock of IStorage interface.
type MockIStorage struct {
ctrl *gomock.Controller
recorder *MockIStorageMockRecorder
}
// MockIStorageMockRecorder is the mock recorder for MockIStorage.
type MockIStorageMockRecorder struct {
mock *MockIStorage
}
// NewMockIStorage creates a new mock instance.
func NewMockIStorage(ctrl *gomock.Controller) *MockIStorage {
mock := &MockIStorage{ctrl: ctrl}
mock.recorder = &MockIStorageMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIStorage) EXPECT() *MockIStorageMockRecorder {
return m.recorder
}
2023-08-13 14:13:17 +00:00
// Close mocks base method.
func (m *MockIStorage) Close() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Close")
}
// Close indicates an expected call of Close.
func (mr *MockIStorageMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIStorage)(nil).Close))
}
2023-08-13 13:22:15 +00:00
// GetAllUsersByChatID mocks base method.
2023-08-13 17:17:42 +00:00
func (m *MockIStorage) GetAllUsersByChatID(ctx context.Context, chatID string) ([]*storage.User, error) {
2023-08-13 13:22:15 +00:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAllUsersByChatID", ctx, chatID)
2023-08-13 17:17:42 +00:00
ret0, _ := ret[0].([]*storage.User)
2023-08-13 13:22:15 +00:00
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAllUsersByChatID indicates an expected call of GetAllUsersByChatID.
func (mr *MockIStorageMockRecorder) GetAllUsersByChatID(ctx, chatID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllUsersByChatID", reflect.TypeOf((*MockIStorage)(nil).GetAllUsersByChatID), ctx, chatID)
}
// UpsertUser mocks base method.
2023-08-13 17:17:42 +00:00
func (m *MockIStorage) UpsertUser(ctx context.Context, user *storage.User) error {
2023-08-13 13:22:15 +00:00
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpsertUser", ctx, user)
ret0, _ := ret[0].(error)
return ret0
}
// UpsertUser indicates an expected call of UpsertUser.
func (mr *MockIStorageMockRecorder) UpsertUser(ctx, user interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertUser", reflect.TypeOf((*MockIStorage)(nil).UpsertUser), ctx, user)
}