mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 13:57:32 +00:00
80 lines
2.7 KiB
Go
80 lines
2.7 KiB
Go
|
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: github.com/caos/zitadel/internal/auth_request/repository (interfaces: Repository)
|
||
|
|
||
|
// Package mock is a generated GoMock package.
|
||
|
package mock
|
||
|
|
||
|
import (
|
||
|
context "context"
|
||
|
model "github.com/caos/zitadel/internal/auth_request/model"
|
||
|
gomock "github.com/golang/mock/gomock"
|
||
|
reflect "reflect"
|
||
|
)
|
||
|
|
||
|
// MockRepository is a mock of Repository interface
|
||
|
type MockRepository struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockRepositoryMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockRepositoryMockRecorder is the mock recorder for MockRepository
|
||
|
type MockRepositoryMockRecorder struct {
|
||
|
mock *MockRepository
|
||
|
}
|
||
|
|
||
|
// NewMockRepository creates a new mock instance
|
||
|
func NewMockRepository(ctrl *gomock.Controller) *MockRepository {
|
||
|
mock := &MockRepository{ctrl: ctrl}
|
||
|
mock.recorder = &MockRepositoryMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use
|
||
|
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// GetAuthRequestByID mocks base method
|
||
|
func (m *MockRepository) GetAuthRequestByID(arg0 context.Context, arg1 string) (*model.AuthRequest, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "GetAuthRequestByID", arg0, arg1)
|
||
|
ret0, _ := ret[0].(*model.AuthRequest)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// GetAuthRequestByID indicates an expected call of GetAuthRequestByID
|
||
|
func (mr *MockRepositoryMockRecorder) GetAuthRequestByID(arg0, arg1 interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthRequestByID", reflect.TypeOf((*MockRepository)(nil).GetAuthRequestByID), arg0, arg1)
|
||
|
}
|
||
|
|
||
|
// Health mocks base method
|
||
|
func (m *MockRepository) Health(arg0 context.Context) error {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Health", arg0)
|
||
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// Health indicates an expected call of Health
|
||
|
func (mr *MockRepositoryMockRecorder) Health(arg0 interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Health", reflect.TypeOf((*MockRepository)(nil).Health), arg0)
|
||
|
}
|
||
|
|
||
|
// SaveAuthRequest mocks base method
|
||
|
func (m *MockRepository) SaveAuthRequest(arg0 context.Context, arg1 string) (*model.AuthRequest, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "SaveAuthRequest", arg0, arg1)
|
||
|
ret0, _ := ret[0].(*model.AuthRequest)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// SaveAuthRequest indicates an expected call of SaveAuthRequest
|
||
|
func (mr *MockRepositoryMockRecorder) SaveAuthRequest(arg0, arg1 interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveAuthRequest", reflect.TypeOf((*MockRepository)(nil).SaveAuthRequest), arg0, arg1)
|
||
|
}
|