mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-28 15:08:51 +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:
@@ -779,6 +779,44 @@ func (c *MockOrganizationSettingsRepositoryTypeColumnCall) DoAndReturn(f func()
|
||||
return c
|
||||
}
|
||||
|
||||
// TypeCondition mocks base method.
|
||||
func (m *MockOrganizationSettingsRepository) TypeCondition(typ domain.SettingType) database.Condition {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "TypeCondition", typ)
|
||||
ret0, _ := ret[0].(database.Condition)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// TypeCondition indicates an expected call of TypeCondition.
|
||||
func (mr *MockOrganizationSettingsRepositoryMockRecorder) TypeCondition(typ any) *MockOrganizationSettingsRepositoryTypeConditionCall {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TypeCondition", reflect.TypeOf((*MockOrganizationSettingsRepository)(nil).TypeCondition), typ)
|
||||
return &MockOrganizationSettingsRepositoryTypeConditionCall{Call: call}
|
||||
}
|
||||
|
||||
// MockOrganizationSettingsRepositoryTypeConditionCall wrap *gomock.Call
|
||||
type MockOrganizationSettingsRepositoryTypeConditionCall struct {
|
||||
*gomock.Call
|
||||
}
|
||||
|
||||
// Return rewrite *gomock.Call.Return
|
||||
func (c *MockOrganizationSettingsRepositoryTypeConditionCall) Return(arg0 database.Condition) *MockOrganizationSettingsRepositoryTypeConditionCall {
|
||||
c.Call = c.Call.Return(arg0)
|
||||
return c
|
||||
}
|
||||
|
||||
// Do rewrite *gomock.Call.Do
|
||||
func (c *MockOrganizationSettingsRepositoryTypeConditionCall) Do(f func(domain.SettingType) database.Condition) *MockOrganizationSettingsRepositoryTypeConditionCall {
|
||||
c.Call = c.Call.Do(f)
|
||||
return c
|
||||
}
|
||||
|
||||
// DoAndReturn rewrite *gomock.Call.DoAndReturn
|
||||
func (c *MockOrganizationSettingsRepositoryTypeConditionCall) DoAndReturn(f func(domain.SettingType) database.Condition) *MockOrganizationSettingsRepositoryTypeConditionCall {
|
||||
c.Call = c.Call.DoAndReturn(f)
|
||||
return c
|
||||
}
|
||||
|
||||
// UniqueColumns mocks base method.
|
||||
func (m *MockOrganizationSettingsRepository) UniqueColumns() []database.Column {
|
||||
m.ctrl.T.Helper()
|
||||
|
||||
Reference in New Issue
Block a user