add all bot

This commit is contained in:
2023-08-13 20:22:15 +07:00
parent 116f4041fa
commit 2889f35a3d
11 changed files with 307 additions and 5 deletions
@@ -0,0 +1,65 @@
// 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
}
// GetAllUsersByChatID mocks base method.
func (m *MockIStorage) GetAllUsersByChatID(ctx context.Context, chatID string) ([]storage.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetAllUsersByChatID", ctx, chatID)
ret0, _ := ret[0].([]storage.User)
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.
func (m *MockIStorage) UpsertUser(ctx context.Context, user storage.User) error {
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)
}