mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-17 19:05:13 +00:00
chore: fix generators in crypto package (#12008)
# Which Problems Are Solved `@zitadel/api:generate-go` failed due to duplicate generated files. https://github.com/zitadel/zitadel/pull/11820 removed the old generated file and added a generate command to the `internal/crypto/crypto.go` file. However, there was already a `internal/crypto/generate.go` with a different output file name (the old file). # How the Problems Are Solved Removed the `internal/crypto/generate.go` file and moved the second generate into `internal/crypto/code.go`. # Additional Changes Noticed that mockgen is an old version and updated it. Also then checked all other tools and updated them. # Additional Context - relates to #11820 - noted internally
This commit is contained in:
@@ -19,6 +19,7 @@ import (
|
||||
type MockCodeGenerator struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockCodeGeneratorMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockCodeGeneratorMockRecorder is the mock recorder for MockCodeGenerator.
|
||||
@@ -39,15 +40,15 @@ func (m *MockCodeGenerator) EXPECT() *MockCodeGeneratorMockRecorder {
|
||||
}
|
||||
|
||||
// VerifyCode mocks base method.
|
||||
func (m *MockCodeGenerator) VerifyCode(arg0, arg1 string) error {
|
||||
func (m *MockCodeGenerator) VerifyCode(verificationID, code string) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "VerifyCode", arg0, arg1)
|
||||
ret := m.ctrl.Call(m, "VerifyCode", verificationID, code)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// VerifyCode indicates an expected call of VerifyCode.
|
||||
func (mr *MockCodeGeneratorMockRecorder) VerifyCode(arg0, arg1 any) *gomock.Call {
|
||||
func (mr *MockCodeGeneratorMockRecorder) VerifyCode(verificationID, code any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyCode", reflect.TypeOf((*MockCodeGenerator)(nil).VerifyCode), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyCode", reflect.TypeOf((*MockCodeGenerator)(nil).VerifyCode), verificationID, code)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user