Files
tasks/common/persistence/visibility/manager/visibility_manager_mock.go

273 lines
12 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: visibility_manager.go
//
// Generated by this command:
//
// mockgen -package manager -source visibility_manager.go -destination visibility_manager_mock.go -aux_files go.temporal.io/server/common/persistence=../../data_interfaces.go
//
// Package manager is a generated GoMock package.
package manager
import (
context "context"
reflect "reflect"
common "go.temporal.io/api/common/v1"
chasm "go.temporal.io/server/chasm"
namespace "go.temporal.io/server/common/namespace"
gomock "go.uber.org/mock/gomock"
)
// MockVisibilityManager is a mock of VisibilityManager interface.
type MockVisibilityManager struct {
ctrl *gomock.Controller
recorder *MockVisibilityManagerMockRecorder
isgomock struct{}
}
// MockVisibilityManagerMockRecorder is the mock recorder for MockVisibilityManager.
type MockVisibilityManagerMockRecorder struct {
mock *MockVisibilityManager
}
// NewMockVisibilityManager creates a new mock instance.
func NewMockVisibilityManager(ctrl *gomock.Controller) *MockVisibilityManager {
mock := &MockVisibilityManager{ctrl: ctrl}
mock.recorder = &MockVisibilityManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockVisibilityManager) EXPECT() *MockVisibilityManagerMockRecorder {
return m.recorder
}
// AddSearchAttributes mocks base method.
func (m *MockVisibilityManager) AddSearchAttributes(ctx context.Context, request *AddSearchAttributesRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddSearchAttributes", ctx, request)
ret0, _ := ret[0].(error)
return ret0
}
// AddSearchAttributes indicates an expected call of AddSearchAttributes.
func (mr *MockVisibilityManagerMockRecorder) AddSearchAttributes(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSearchAttributes", reflect.TypeOf((*MockVisibilityManager)(nil).AddSearchAttributes), ctx, request)
}
// Close mocks base method.
func (m *MockVisibilityManager) Close() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Close")
}
// Close indicates an expected call of Close.
func (mr *MockVisibilityManagerMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockVisibilityManager)(nil).Close))
}
// CountChasmExecutions mocks base method.
func (m *MockVisibilityManager) CountChasmExecutions(ctx context.Context, request *CountChasmExecutionsRequest) (*chasm.CountExecutionsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CountChasmExecutions", ctx, request)
ret0, _ := ret[0].(*chasm.CountExecutionsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CountChasmExecutions indicates an expected call of CountChasmExecutions.
func (mr *MockVisibilityManagerMockRecorder) CountChasmExecutions(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountChasmExecutions", reflect.TypeOf((*MockVisibilityManager)(nil).CountChasmExecutions), ctx, request)
}
// CountWorkflowExecutions mocks base method.
func (m *MockVisibilityManager) CountWorkflowExecutions(ctx context.Context, request *CountWorkflowExecutionsRequest) (*CountWorkflowExecutionsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CountWorkflowExecutions", ctx, request)
ret0, _ := ret[0].(*CountWorkflowExecutionsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CountWorkflowExecutions indicates an expected call of CountWorkflowExecutions.
func (mr *MockVisibilityManagerMockRecorder) CountWorkflowExecutions(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountWorkflowExecutions", reflect.TypeOf((*MockVisibilityManager)(nil).CountWorkflowExecutions), ctx, request)
}
// DeleteWorkflowExecution mocks base method.
func (m *MockVisibilityManager) DeleteWorkflowExecution(ctx context.Context, request *VisibilityDeleteWorkflowExecutionRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteWorkflowExecution", ctx, request)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
func (mr *MockVisibilityManagerMockRecorder) DeleteWorkflowExecution(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflowExecution", reflect.TypeOf((*MockVisibilityManager)(nil).DeleteWorkflowExecution), ctx, request)
}
// GetIndexName mocks base method.
func (m *MockVisibilityManager) GetIndexName() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetIndexName")
ret0, _ := ret[0].(string)
return ret0
}
// GetIndexName indicates an expected call of GetIndexName.
func (mr *MockVisibilityManagerMockRecorder) GetIndexName() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIndexName", reflect.TypeOf((*MockVisibilityManager)(nil).GetIndexName))
}
// GetReadStoreName mocks base method.
func (m *MockVisibilityManager) GetReadStoreName(nsName namespace.Name) string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetReadStoreName", nsName)
ret0, _ := ret[0].(string)
return ret0
}
// GetReadStoreName indicates an expected call of GetReadStoreName.
func (mr *MockVisibilityManagerMockRecorder) GetReadStoreName(nsName any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReadStoreName", reflect.TypeOf((*MockVisibilityManager)(nil).GetReadStoreName), nsName)
}
// GetStoreNames mocks base method.
func (m *MockVisibilityManager) GetStoreNames() []string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetStoreNames")
ret0, _ := ret[0].([]string)
return ret0
}
// GetStoreNames indicates an expected call of GetStoreNames.
func (mr *MockVisibilityManagerMockRecorder) GetStoreNames() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStoreNames", reflect.TypeOf((*MockVisibilityManager)(nil).GetStoreNames))
}
// GetWorkflowExecution mocks base method.
func (m *MockVisibilityManager) GetWorkflowExecution(ctx context.Context, request *GetWorkflowExecutionRequest) (*GetWorkflowExecutionResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetWorkflowExecution", ctx, request)
ret0, _ := ret[0].(*GetWorkflowExecutionResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetWorkflowExecution indicates an expected call of GetWorkflowExecution.
func (mr *MockVisibilityManagerMockRecorder) GetWorkflowExecution(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowExecution", reflect.TypeOf((*MockVisibilityManager)(nil).GetWorkflowExecution), ctx, request)
}
// HasStoreName mocks base method.
func (m *MockVisibilityManager) HasStoreName(stName string) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HasStoreName", stName)
ret0, _ := ret[0].(bool)
return ret0
}
// HasStoreName indicates an expected call of HasStoreName.
func (mr *MockVisibilityManagerMockRecorder) HasStoreName(stName any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasStoreName", reflect.TypeOf((*MockVisibilityManager)(nil).HasStoreName), stName)
}
// ListChasmExecutions mocks base method.
func (m *MockVisibilityManager) ListChasmExecutions(ctx context.Context, request *ListChasmExecutionsRequest) (*chasm.ListExecutionsResponse[*common.Payload], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListChasmExecutions", ctx, request)
ret0, _ := ret[0].(*chasm.ListExecutionsResponse[*common.Payload])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListChasmExecutions indicates an expected call of ListChasmExecutions.
func (mr *MockVisibilityManagerMockRecorder) ListChasmExecutions(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListChasmExecutions", reflect.TypeOf((*MockVisibilityManager)(nil).ListChasmExecutions), ctx, request)
}
// ListWorkflowExecutions mocks base method.
func (m *MockVisibilityManager) ListWorkflowExecutions(ctx context.Context, request *ListWorkflowExecutionsRequestV2) (*ListWorkflowExecutionsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListWorkflowExecutions", ctx, request)
ret0, _ := ret[0].(*ListWorkflowExecutionsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListWorkflowExecutions indicates an expected call of ListWorkflowExecutions.
func (mr *MockVisibilityManagerMockRecorder) ListWorkflowExecutions(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkflowExecutions", reflect.TypeOf((*MockVisibilityManager)(nil).ListWorkflowExecutions), ctx, request)
}
// RecordWorkflowExecutionClosed mocks base method.
func (m *MockVisibilityManager) RecordWorkflowExecutionClosed(ctx context.Context, request *RecordWorkflowExecutionClosedRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RecordWorkflowExecutionClosed", ctx, request)
ret0, _ := ret[0].(error)
return ret0
}
// RecordWorkflowExecutionClosed indicates an expected call of RecordWorkflowExecutionClosed.
func (mr *MockVisibilityManagerMockRecorder) RecordWorkflowExecutionClosed(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordWorkflowExecutionClosed", reflect.TypeOf((*MockVisibilityManager)(nil).RecordWorkflowExecutionClosed), ctx, request)
}
// RecordWorkflowExecutionStarted mocks base method.
func (m *MockVisibilityManager) RecordWorkflowExecutionStarted(ctx context.Context, request *RecordWorkflowExecutionStartedRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RecordWorkflowExecutionStarted", ctx, request)
ret0, _ := ret[0].(error)
return ret0
}
// RecordWorkflowExecutionStarted indicates an expected call of RecordWorkflowExecutionStarted.
func (mr *MockVisibilityManagerMockRecorder) RecordWorkflowExecutionStarted(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordWorkflowExecutionStarted", reflect.TypeOf((*MockVisibilityManager)(nil).RecordWorkflowExecutionStarted), ctx, request)
}
// UpsertWorkflowExecution mocks base method.
func (m *MockVisibilityManager) UpsertWorkflowExecution(ctx context.Context, request *UpsertWorkflowExecutionRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpsertWorkflowExecution", ctx, request)
ret0, _ := ret[0].(error)
return ret0
}
// UpsertWorkflowExecution indicates an expected call of UpsertWorkflowExecution.
func (mr *MockVisibilityManagerMockRecorder) UpsertWorkflowExecution(ctx, request any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertWorkflowExecution", reflect.TypeOf((*MockVisibilityManager)(nil).UpsertWorkflowExecution), ctx, request)
}
// ValidateCustomSearchAttributes mocks base method.
func (m *MockVisibilityManager) ValidateCustomSearchAttributes(searchAttributes map[string]any) (map[string]any, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ValidateCustomSearchAttributes", searchAttributes)
ret0, _ := ret[0].(map[string]any)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ValidateCustomSearchAttributes indicates an expected call of ValidateCustomSearchAttributes.
func (mr *MockVisibilityManagerMockRecorder) ValidateCustomSearchAttributes(searchAttributes any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateCustomSearchAttributes", reflect.TypeOf((*MockVisibilityManager)(nil).ValidateCustomSearchAttributes), searchAttributes)
}