mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:07:30 +00:00
chore(Makefile): add go generate target (#6944)
This change adds a core_generate_all make target. It installs the required tools and runs generate on the complete project. `golang/mock` is no longer maintained and a fork is available from the Uber folks. So the latter is used as tool. All the mock files have been regenerated and are part of the PR. The obsolete `tools` directory has been removed, as all the tools are now part of specific make targets. Co-authored-by: Silvan <silvan.reusser@gmail.com>
This commit is contained in:
@@ -1,67 +1,44 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: code.go
|
||||
|
||||
//
|
||||
// Generated by this command:
|
||||
//
|
||||
// mockgen -source code.go -destination ./code_mock.go -package crypto
|
||||
//
|
||||
// Package crypto is a generated GoMock package.
|
||||
package crypto
|
||||
|
||||
import (
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
reflect "reflect"
|
||||
time "time"
|
||||
|
||||
gomock "go.uber.org/mock/gomock"
|
||||
)
|
||||
|
||||
// MockGenerator is a mock of Generator interface
|
||||
// MockGenerator is a mock of Generator interface.
|
||||
type MockGenerator struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockGeneratorMockRecorder
|
||||
}
|
||||
|
||||
// MockGeneratorMockRecorder is the mock recorder for MockGenerator
|
||||
// MockGeneratorMockRecorder is the mock recorder for MockGenerator.
|
||||
type MockGeneratorMockRecorder struct {
|
||||
mock *MockGenerator
|
||||
}
|
||||
|
||||
// NewMockGenerator creates a new mock instance
|
||||
// NewMockGenerator creates a new mock instance.
|
||||
func NewMockGenerator(ctrl *gomock.Controller) *MockGenerator {
|
||||
mock := &MockGenerator{ctrl: ctrl}
|
||||
mock.recorder = &MockGeneratorMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockGenerator) EXPECT() *MockGeneratorMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// Length mocks base method
|
||||
func (m *MockGenerator) Length() uint {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Length")
|
||||
ret0, _ := ret[0].(uint)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Length indicates an expected call of Length
|
||||
func (mr *MockGeneratorMockRecorder) Length() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Length", reflect.TypeOf((*MockGenerator)(nil).Length))
|
||||
}
|
||||
|
||||
// Expiry mocks base method
|
||||
func (m *MockGenerator) Expiry() time.Duration {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Expiry")
|
||||
ret0, _ := ret[0].(time.Duration)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Expiry indicates an expected call of Expiry
|
||||
func (mr *MockGeneratorMockRecorder) Expiry() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Expiry", reflect.TypeOf((*MockGenerator)(nil).Expiry))
|
||||
}
|
||||
|
||||
// Alg mocks base method
|
||||
// Alg mocks base method.
|
||||
func (m *MockGenerator) Alg() Crypto {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Alg")
|
||||
@@ -69,13 +46,41 @@ func (m *MockGenerator) Alg() Crypto {
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Alg indicates an expected call of Alg
|
||||
// Alg indicates an expected call of Alg.
|
||||
func (mr *MockGeneratorMockRecorder) Alg() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Alg", reflect.TypeOf((*MockGenerator)(nil).Alg))
|
||||
}
|
||||
|
||||
// Runes mocks base method
|
||||
// Expiry mocks base method.
|
||||
func (m *MockGenerator) Expiry() time.Duration {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Expiry")
|
||||
ret0, _ := ret[0].(time.Duration)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Expiry indicates an expected call of Expiry.
|
||||
func (mr *MockGeneratorMockRecorder) Expiry() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Expiry", reflect.TypeOf((*MockGenerator)(nil).Expiry))
|
||||
}
|
||||
|
||||
// Length mocks base method.
|
||||
func (m *MockGenerator) Length() uint {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Length")
|
||||
ret0, _ := ret[0].(uint)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Length indicates an expected call of Length.
|
||||
func (mr *MockGeneratorMockRecorder) Length() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Length", reflect.TypeOf((*MockGenerator)(nil).Length))
|
||||
}
|
||||
|
||||
// Runes mocks base method.
|
||||
func (m *MockGenerator) Runes() []rune {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Runes")
|
||||
@@ -83,7 +88,7 @@ func (m *MockGenerator) Runes() []rune {
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Runes indicates an expected call of Runes
|
||||
// Runes indicates an expected call of Runes.
|
||||
func (mr *MockGeneratorMockRecorder) Runes() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Runes", reflect.TypeOf((*MockGenerator)(nil).Runes))
|
||||
|
Reference in New Issue
Block a user