Files
tasks/service/history/replication/task_fetcher_mock.go
Alex ShtinandGitHub 8e8f1b0f7c Remove license header from every file (#7689)
## What changed?
<!-- Describe what has changed in this PR -->
Remove license header from every file. Because it is really hard to
follow in this PR here is the summary:
1. License header is removed from all `.go` and `.proto` files
:fireworks::fireworks:🎆.
2. `LICENSE` file in the root directory has only Temporal and Uber
copyrights.
3. 5 other `LICENSE` files added to the packages which have copyrights
different from Temporal and Uber: Datadog, Xargin, "Mat Ryer, Tyler
Bunnell and contributors".
4. `license_file` flag is removed from all code generation tools.
5. `copyright_file` flag is removed from `go:generate mockgen`
directive.
6. All copyright related targets are removed from `Makefile`.
7. Updated Temporal copyright year to 2025 everywhere.

## Why?
<!-- Tell your future self why have you made these changes -->
I double checked with legal department that it is not needed to have
license header in every file. One file per repo is enough. I put all
copyrights to the root `LICENSE` file and removed header from all other
files. Also updated tools and `Makefile`.
2025-05-01 18:50:21 -07:00

158 lines
5.0 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: task_fetcher.go
//
// Generated by this command:
//
// mockgen -package replication -source task_fetcher.go -destination task_fetcher_mock.go
//
// Package replication is a generated GoMock package.
package replication
import (
reflect "reflect"
quotas "go.temporal.io/server/common/quotas"
gomock "go.uber.org/mock/gomock"
)
// MockTaskFetcherFactory is a mock of TaskFetcherFactory interface.
type MockTaskFetcherFactory struct {
ctrl *gomock.Controller
recorder *MockTaskFetcherFactoryMockRecorder
isgomock struct{}
}
// MockTaskFetcherFactoryMockRecorder is the mock recorder for MockTaskFetcherFactory.
type MockTaskFetcherFactoryMockRecorder struct {
mock *MockTaskFetcherFactory
}
// NewMockTaskFetcherFactory creates a new mock instance.
func NewMockTaskFetcherFactory(ctrl *gomock.Controller) *MockTaskFetcherFactory {
mock := &MockTaskFetcherFactory{ctrl: ctrl}
mock.recorder = &MockTaskFetcherFactoryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTaskFetcherFactory) EXPECT() *MockTaskFetcherFactoryMockRecorder {
return m.recorder
}
// GetOrCreateFetcher mocks base method.
func (m *MockTaskFetcherFactory) GetOrCreateFetcher(clusterName string) taskFetcher {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetOrCreateFetcher", clusterName)
ret0, _ := ret[0].(taskFetcher)
return ret0
}
// GetOrCreateFetcher indicates an expected call of GetOrCreateFetcher.
func (mr *MockTaskFetcherFactoryMockRecorder) GetOrCreateFetcher(clusterName any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrCreateFetcher", reflect.TypeOf((*MockTaskFetcherFactory)(nil).GetOrCreateFetcher), clusterName)
}
// Start mocks base method.
func (m *MockTaskFetcherFactory) Start() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Start")
}
// Start indicates an expected call of Start.
func (mr *MockTaskFetcherFactoryMockRecorder) Start() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockTaskFetcherFactory)(nil).Start))
}
// Stop mocks base method.
func (m *MockTaskFetcherFactory) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MockTaskFetcherFactoryMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockTaskFetcherFactory)(nil).Stop))
}
// MocktaskFetcher is a mock of taskFetcher interface.
type MocktaskFetcher struct {
ctrl *gomock.Controller
recorder *MocktaskFetcherMockRecorder
isgomock struct{}
}
// MocktaskFetcherMockRecorder is the mock recorder for MocktaskFetcher.
type MocktaskFetcherMockRecorder struct {
mock *MocktaskFetcher
}
// NewMocktaskFetcher creates a new mock instance.
func NewMocktaskFetcher(ctrl *gomock.Controller) *MocktaskFetcher {
mock := &MocktaskFetcher{ctrl: ctrl}
mock.recorder = &MocktaskFetcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MocktaskFetcher) EXPECT() *MocktaskFetcherMockRecorder {
return m.recorder
}
// Stop mocks base method.
func (m *MocktaskFetcher) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MocktaskFetcherMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MocktaskFetcher)(nil).Stop))
}
// getRateLimiter mocks base method.
func (m *MocktaskFetcher) getRateLimiter() quotas.RateLimiter {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getRateLimiter")
ret0, _ := ret[0].(quotas.RateLimiter)
return ret0
}
// getRateLimiter indicates an expected call of getRateLimiter.
func (mr *MocktaskFetcherMockRecorder) getRateLimiter() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getRateLimiter", reflect.TypeOf((*MocktaskFetcher)(nil).getRateLimiter))
}
// getRequestChan mocks base method.
func (m *MocktaskFetcher) getRequestChan() chan<- *replicationTaskRequest {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getRequestChan")
ret0, _ := ret[0].(chan<- *replicationTaskRequest)
return ret0
}
// getRequestChan indicates an expected call of getRequestChan.
func (mr *MocktaskFetcherMockRecorder) getRequestChan() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getRequestChan", reflect.TypeOf((*MocktaskFetcher)(nil).getRequestChan))
}
// getSourceCluster mocks base method.
func (m *MocktaskFetcher) getSourceCluster() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getSourceCluster")
ret0, _ := ret[0].(string)
return ret0
}
// getSourceCluster indicates an expected call of getSourceCluster.
func (mr *MocktaskFetcherMockRecorder) getSourceCluster() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getSourceCluster", reflect.TypeOf((*MocktaskFetcher)(nil).getSourceCluster))
}