Files
tasks/chasm/library_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

133 lines
3.7 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: library.go
//
// Generated by this command:
//
// mockgen -package chasm -source library.go -destination library_mock.go
//
// Package chasm is a generated GoMock package.
package chasm
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockLibrary is a mock of Library interface.
type MockLibrary struct {
ctrl *gomock.Controller
recorder *MockLibraryMockRecorder
isgomock struct{}
}
// MockLibraryMockRecorder is the mock recorder for MockLibrary.
type MockLibraryMockRecorder struct {
mock *MockLibrary
}
// NewMockLibrary creates a new mock instance.
func NewMockLibrary(ctrl *gomock.Controller) *MockLibrary {
mock := &MockLibrary{ctrl: ctrl}
mock.recorder = &MockLibraryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockLibrary) EXPECT() *MockLibraryMockRecorder {
return m.recorder
}
// Components mocks base method.
func (m *MockLibrary) Components() []*RegistrableComponent {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Components")
ret0, _ := ret[0].([]*RegistrableComponent)
return ret0
}
// Components indicates an expected call of Components.
func (mr *MockLibraryMockRecorder) Components() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Components", reflect.TypeOf((*MockLibrary)(nil).Components))
}
// Name mocks base method.
func (m *MockLibrary) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MockLibraryMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockLibrary)(nil).Name))
}
// Tasks mocks base method.
func (m *MockLibrary) Tasks() []*RegistrableTask {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Tasks")
ret0, _ := ret[0].([]*RegistrableTask)
return ret0
}
// Tasks indicates an expected call of Tasks.
func (mr *MockLibraryMockRecorder) Tasks() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tasks", reflect.TypeOf((*MockLibrary)(nil).Tasks))
}
// mustEmbedUnimplementedLibrary mocks base method.
func (m *MockLibrary) mustEmbedUnimplementedLibrary() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "mustEmbedUnimplementedLibrary")
}
// mustEmbedUnimplementedLibrary indicates an expected call of mustEmbedUnimplementedLibrary.
func (mr *MockLibraryMockRecorder) mustEmbedUnimplementedLibrary() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedLibrary", reflect.TypeOf((*MockLibrary)(nil).mustEmbedUnimplementedLibrary))
}
// Mocknamer is a mock of namer interface.
type Mocknamer struct {
ctrl *gomock.Controller
recorder *MocknamerMockRecorder
isgomock struct{}
}
// MocknamerMockRecorder is the mock recorder for Mocknamer.
type MocknamerMockRecorder struct {
mock *Mocknamer
}
// NewMocknamer creates a new mock instance.
func NewMocknamer(ctrl *gomock.Controller) *Mocknamer {
mock := &Mocknamer{ctrl: ctrl}
mock.recorder = &MocknamerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *Mocknamer) EXPECT() *MocknamerMockRecorder {
return m.recorder
}
// Name mocks base method.
func (m *Mocknamer) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MocknamerMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*Mocknamer)(nil).Name))
}