mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed? Introduce proto types for Visibility: - `ChasmExecutionInfo` - `ListChasmExecutionsRequest` - `ListChasmExecutionsResponse` Changed VisibilityManager API to use these protos. ## Why? Make VisibilityManager API more accessible for potential external usage. ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks
73 lines
2.7 KiB
Go
73 lines
2.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: visibility_manager.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package chasm -source visibility_manager.go -destination visibility_manager_mock.go
|
|
//
|
|
|
|
// Package chasm is a generated GoMock package.
|
|
package chasm
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
visibilityservice "go.temporal.io/server/api/visibilityservice/v1"
|
|
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
|
|
}
|
|
|
|
// CountExecutions mocks base method.
|
|
func (m *MockVisibilityManager) CountExecutions(arg0 context.Context, arg1 reflect.Type, arg2 *CountExecutionsRequest) (*visibilityservice.CountChasmExecutionsResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CountExecutions", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(*visibilityservice.CountChasmExecutionsResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CountExecutions indicates an expected call of CountExecutions.
|
|
func (mr *MockVisibilityManagerMockRecorder) CountExecutions(arg0, arg1, arg2 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountExecutions", reflect.TypeOf((*MockVisibilityManager)(nil).CountExecutions), arg0, arg1, arg2)
|
|
}
|
|
|
|
// ListExecutions mocks base method.
|
|
func (m *MockVisibilityManager) ListExecutions(arg0 context.Context, arg1 reflect.Type, arg2 *ListExecutionsRequest) (*visibilityservice.ListChasmExecutionsResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ListExecutions", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(*visibilityservice.ListChasmExecutionsResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ListExecutions indicates an expected call of ListExecutions.
|
|
func (mr *MockVisibilityManagerMockRecorder) ListExecutions(arg0, arg1, arg2 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExecutions", reflect.TypeOf((*MockVisibilityManager)(nil).ListExecutions), arg0, arg1, arg2)
|
|
}
|