mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
# 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
55 lines
1.7 KiB
Go
55 lines
1.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/zitadel/zitadel/internal/notification/senders (interfaces: CodeGenerator)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package mock -destination ./mock/code_generator.mock.go github.com/zitadel/zitadel/internal/notification/senders CodeGenerator
|
|
//
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockCodeGenerator is a mock of CodeGenerator interface.
|
|
type MockCodeGenerator struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockCodeGeneratorMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockCodeGeneratorMockRecorder is the mock recorder for MockCodeGenerator.
|
|
type MockCodeGeneratorMockRecorder struct {
|
|
mock *MockCodeGenerator
|
|
}
|
|
|
|
// NewMockCodeGenerator creates a new mock instance.
|
|
func NewMockCodeGenerator(ctrl *gomock.Controller) *MockCodeGenerator {
|
|
mock := &MockCodeGenerator{ctrl: ctrl}
|
|
mock.recorder = &MockCodeGeneratorMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockCodeGenerator) EXPECT() *MockCodeGeneratorMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// VerifyCode mocks base method.
|
|
func (m *MockCodeGenerator) VerifyCode(verificationID, code string) error {
|
|
m.ctrl.T.Helper()
|
|
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(verificationID, code any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyCode", reflect.TypeOf((*MockCodeGenerator)(nil).VerifyCode), verificationID, code)
|
|
}
|