mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## 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`.
72 lines
2.6 KiB
Go
72 lines
2.6 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: task_refresher.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package workflow -source task_refresher.go -destination task_refresher_mock.go
|
|
//
|
|
|
|
// Package workflow is a generated GoMock package.
|
|
package workflow
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
persistence "go.temporal.io/server/api/persistence/v1"
|
|
interfaces "go.temporal.io/server/service/history/interfaces"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockTaskRefresher is a mock of TaskRefresher interface.
|
|
type MockTaskRefresher struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockTaskRefresherMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockTaskRefresherMockRecorder is the mock recorder for MockTaskRefresher.
|
|
type MockTaskRefresherMockRecorder struct {
|
|
mock *MockTaskRefresher
|
|
}
|
|
|
|
// NewMockTaskRefresher creates a new mock instance.
|
|
func NewMockTaskRefresher(ctrl *gomock.Controller) *MockTaskRefresher {
|
|
mock := &MockTaskRefresher{ctrl: ctrl}
|
|
mock.recorder = &MockTaskRefresherMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockTaskRefresher) EXPECT() *MockTaskRefresherMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// PartialRefresh mocks base method.
|
|
func (m *MockTaskRefresher) PartialRefresh(ctx context.Context, mutableState interfaces.MutableState, minVersionedTransition *persistence.VersionedTransition, previousPendingChildIds map[int64]struct{}) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PartialRefresh", ctx, mutableState, minVersionedTransition, previousPendingChildIds)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// PartialRefresh indicates an expected call of PartialRefresh.
|
|
func (mr *MockTaskRefresherMockRecorder) PartialRefresh(ctx, mutableState, minVersionedTransition, previousPendingChildIds any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PartialRefresh", reflect.TypeOf((*MockTaskRefresher)(nil).PartialRefresh), ctx, mutableState, minVersionedTransition, previousPendingChildIds)
|
|
}
|
|
|
|
// Refresh mocks base method.
|
|
func (m *MockTaskRefresher) Refresh(ctx context.Context, mutableState interfaces.MutableState) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Refresh", ctx, mutableState)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Refresh indicates an expected call of Refresh.
|
|
func (mr *MockTaskRefresherMockRecorder) Refresh(ctx, mutableState any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Refresh", reflect.TypeOf((*MockTaskRefresher)(nil).Refresh), ctx, mutableState)
|
|
}
|