Files
tasks/common/quotas/reservation_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

108 lines
3.0 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: reservation.go
//
// Generated by this command:
//
// mockgen -package quotas -source reservation.go -destination reservation_mock.go
//
// Package quotas is a generated GoMock package.
package quotas
import (
reflect "reflect"
time "time"
gomock "go.uber.org/mock/gomock"
)
// MockReservation is a mock of Reservation interface.
type MockReservation struct {
ctrl *gomock.Controller
recorder *MockReservationMockRecorder
isgomock struct{}
}
// MockReservationMockRecorder is the mock recorder for MockReservation.
type MockReservationMockRecorder struct {
mock *MockReservation
}
// NewMockReservation creates a new mock instance.
func NewMockReservation(ctrl *gomock.Controller) *MockReservation {
mock := &MockReservation{ctrl: ctrl}
mock.recorder = &MockReservationMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockReservation) EXPECT() *MockReservationMockRecorder {
return m.recorder
}
// Cancel mocks base method.
func (m *MockReservation) Cancel() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Cancel")
}
// Cancel indicates an expected call of Cancel.
func (mr *MockReservationMockRecorder) Cancel() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cancel", reflect.TypeOf((*MockReservation)(nil).Cancel))
}
// CancelAt mocks base method.
func (m *MockReservation) CancelAt(now time.Time) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "CancelAt", now)
}
// CancelAt indicates an expected call of CancelAt.
func (mr *MockReservationMockRecorder) CancelAt(now any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelAt", reflect.TypeOf((*MockReservation)(nil).CancelAt), now)
}
// Delay mocks base method.
func (m *MockReservation) Delay() time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delay")
ret0, _ := ret[0].(time.Duration)
return ret0
}
// Delay indicates an expected call of Delay.
func (mr *MockReservationMockRecorder) Delay() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delay", reflect.TypeOf((*MockReservation)(nil).Delay))
}
// DelayFrom mocks base method.
func (m *MockReservation) DelayFrom(now time.Time) time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DelayFrom", now)
ret0, _ := ret[0].(time.Duration)
return ret0
}
// DelayFrom indicates an expected call of DelayFrom.
func (mr *MockReservationMockRecorder) DelayFrom(now any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelayFrom", reflect.TypeOf((*MockReservation)(nil).DelayFrom), now)
}
// OK mocks base method.
func (m *MockReservation) OK() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OK")
ret0, _ := ret[0].(bool)
return ret0
}
// OK indicates an expected call of OK.
func (mr *MockReservationMockRecorder) OK() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OK", reflect.TypeOf((*MockReservation)(nil).OK))
}