mirror of
https://github.com/harness/drone.git
synced 2025-05-02 21:55:27 +00:00
426 lines
15 KiB
Go
426 lines
15 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/bradrydzewski/my-app/internal/store (interfaces: ExecutionStore,PipelineStore,SystemStore,UserStore)
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
types "github.com/bradrydzewski/my-app/types"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockExecutionStore is a mock of ExecutionStore interface.
|
|
type MockExecutionStore struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockExecutionStoreMockRecorder
|
|
}
|
|
|
|
// MockExecutionStoreMockRecorder is the mock recorder for MockExecutionStore.
|
|
type MockExecutionStoreMockRecorder struct {
|
|
mock *MockExecutionStore
|
|
}
|
|
|
|
// NewMockExecutionStore creates a new mock instance.
|
|
func NewMockExecutionStore(ctrl *gomock.Controller) *MockExecutionStore {
|
|
mock := &MockExecutionStore{ctrl: ctrl}
|
|
mock.recorder = &MockExecutionStoreMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockExecutionStore) EXPECT() *MockExecutionStoreMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Create mocks base method.
|
|
func (m *MockExecutionStore) Create(arg0 context.Context, arg1 *types.Execution) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Create", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Create indicates an expected call of Create.
|
|
func (mr *MockExecutionStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockExecutionStore)(nil).Create), arg0, arg1)
|
|
}
|
|
|
|
// Delete mocks base method.
|
|
func (m *MockExecutionStore) Delete(arg0 context.Context, arg1 *types.Execution) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Delete indicates an expected call of Delete.
|
|
func (mr *MockExecutionStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockExecutionStore)(nil).Delete), arg0, arg1)
|
|
}
|
|
|
|
// Find mocks base method.
|
|
func (m *MockExecutionStore) Find(arg0 context.Context, arg1 int64) (*types.Execution, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Find", arg0, arg1)
|
|
ret0, _ := ret[0].(*types.Execution)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Find indicates an expected call of Find.
|
|
func (mr *MockExecutionStoreMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockExecutionStore)(nil).Find), arg0, arg1)
|
|
}
|
|
|
|
// FindSlug mocks base method.
|
|
func (m *MockExecutionStore) FindSlug(arg0 context.Context, arg1 int64, arg2 string) (*types.Execution, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindSlug", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(*types.Execution)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindSlug indicates an expected call of FindSlug.
|
|
func (mr *MockExecutionStoreMockRecorder) FindSlug(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindSlug", reflect.TypeOf((*MockExecutionStore)(nil).FindSlug), arg0, arg1, arg2)
|
|
}
|
|
|
|
// List mocks base method.
|
|
func (m *MockExecutionStore) List(arg0 context.Context, arg1 int64, arg2 types.Params) ([]*types.Execution, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "List", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].([]*types.Execution)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// List indicates an expected call of List.
|
|
func (mr *MockExecutionStoreMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockExecutionStore)(nil).List), arg0, arg1, arg2)
|
|
}
|
|
|
|
// Update mocks base method.
|
|
func (m *MockExecutionStore) Update(arg0 context.Context, arg1 *types.Execution) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Update", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Update indicates an expected call of Update.
|
|
func (mr *MockExecutionStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockExecutionStore)(nil).Update), arg0, arg1)
|
|
}
|
|
|
|
// MockPipelineStore is a mock of PipelineStore interface.
|
|
type MockPipelineStore struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockPipelineStoreMockRecorder
|
|
}
|
|
|
|
// MockPipelineStoreMockRecorder is the mock recorder for MockPipelineStore.
|
|
type MockPipelineStoreMockRecorder struct {
|
|
mock *MockPipelineStore
|
|
}
|
|
|
|
// NewMockPipelineStore creates a new mock instance.
|
|
func NewMockPipelineStore(ctrl *gomock.Controller) *MockPipelineStore {
|
|
mock := &MockPipelineStore{ctrl: ctrl}
|
|
mock.recorder = &MockPipelineStoreMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockPipelineStore) EXPECT() *MockPipelineStoreMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Create mocks base method.
|
|
func (m *MockPipelineStore) Create(arg0 context.Context, arg1 *types.Pipeline) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Create", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Create indicates an expected call of Create.
|
|
func (mr *MockPipelineStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPipelineStore)(nil).Create), arg0, arg1)
|
|
}
|
|
|
|
// Delete mocks base method.
|
|
func (m *MockPipelineStore) Delete(arg0 context.Context, arg1 *types.Pipeline) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Delete indicates an expected call of Delete.
|
|
func (mr *MockPipelineStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPipelineStore)(nil).Delete), arg0, arg1)
|
|
}
|
|
|
|
// Find mocks base method.
|
|
func (m *MockPipelineStore) Find(arg0 context.Context, arg1 int64) (*types.Pipeline, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Find", arg0, arg1)
|
|
ret0, _ := ret[0].(*types.Pipeline)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Find indicates an expected call of Find.
|
|
func (mr *MockPipelineStoreMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockPipelineStore)(nil).Find), arg0, arg1)
|
|
}
|
|
|
|
// FindSlug mocks base method.
|
|
func (m *MockPipelineStore) FindSlug(arg0 context.Context, arg1 string) (*types.Pipeline, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindSlug", arg0, arg1)
|
|
ret0, _ := ret[0].(*types.Pipeline)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindSlug indicates an expected call of FindSlug.
|
|
func (mr *MockPipelineStoreMockRecorder) FindSlug(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindSlug", reflect.TypeOf((*MockPipelineStore)(nil).FindSlug), arg0, arg1)
|
|
}
|
|
|
|
// FindToken mocks base method.
|
|
func (m *MockPipelineStore) FindToken(arg0 context.Context, arg1 string) (*types.Pipeline, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindToken", arg0, arg1)
|
|
ret0, _ := ret[0].(*types.Pipeline)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindToken indicates an expected call of FindToken.
|
|
func (mr *MockPipelineStoreMockRecorder) FindToken(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindToken", reflect.TypeOf((*MockPipelineStore)(nil).FindToken), arg0, arg1)
|
|
}
|
|
|
|
// List mocks base method.
|
|
func (m *MockPipelineStore) List(arg0 context.Context, arg1 int64, arg2 types.Params) ([]*types.Pipeline, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "List", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].([]*types.Pipeline)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// List indicates an expected call of List.
|
|
func (mr *MockPipelineStoreMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPipelineStore)(nil).List), arg0, arg1, arg2)
|
|
}
|
|
|
|
// Update mocks base method.
|
|
func (m *MockPipelineStore) Update(arg0 context.Context, arg1 *types.Pipeline) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Update", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Update indicates an expected call of Update.
|
|
func (mr *MockPipelineStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPipelineStore)(nil).Update), arg0, arg1)
|
|
}
|
|
|
|
// MockSystemStore is a mock of SystemStore interface.
|
|
type MockSystemStore struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockSystemStoreMockRecorder
|
|
}
|
|
|
|
// MockSystemStoreMockRecorder is the mock recorder for MockSystemStore.
|
|
type MockSystemStoreMockRecorder struct {
|
|
mock *MockSystemStore
|
|
}
|
|
|
|
// NewMockSystemStore creates a new mock instance.
|
|
func NewMockSystemStore(ctrl *gomock.Controller) *MockSystemStore {
|
|
mock := &MockSystemStore{ctrl: ctrl}
|
|
mock.recorder = &MockSystemStoreMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockSystemStore) EXPECT() *MockSystemStoreMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Config mocks base method.
|
|
func (m *MockSystemStore) Config(arg0 context.Context) *types.Config {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Config", arg0)
|
|
ret0, _ := ret[0].(*types.Config)
|
|
return ret0
|
|
}
|
|
|
|
// Config indicates an expected call of Config.
|
|
func (mr *MockSystemStoreMockRecorder) Config(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockSystemStore)(nil).Config), arg0)
|
|
}
|
|
|
|
// MockUserStore is a mock of UserStore interface.
|
|
type MockUserStore struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockUserStoreMockRecorder
|
|
}
|
|
|
|
// MockUserStoreMockRecorder is the mock recorder for MockUserStore.
|
|
type MockUserStoreMockRecorder struct {
|
|
mock *MockUserStore
|
|
}
|
|
|
|
// NewMockUserStore creates a new mock instance.
|
|
func NewMockUserStore(ctrl *gomock.Controller) *MockUserStore {
|
|
mock := &MockUserStore{ctrl: ctrl}
|
|
mock.recorder = &MockUserStoreMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockUserStore) EXPECT() *MockUserStoreMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Count mocks base method.
|
|
func (m *MockUserStore) Count(arg0 context.Context) (int64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Count", arg0)
|
|
ret0, _ := ret[0].(int64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Count indicates an expected call of Count.
|
|
func (mr *MockUserStoreMockRecorder) Count(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Count", reflect.TypeOf((*MockUserStore)(nil).Count), arg0)
|
|
}
|
|
|
|
// Create mocks base method.
|
|
func (m *MockUserStore) Create(arg0 context.Context, arg1 *types.User) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Create", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Create indicates an expected call of Create.
|
|
func (mr *MockUserStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockUserStore)(nil).Create), arg0, arg1)
|
|
}
|
|
|
|
// Delete mocks base method.
|
|
func (m *MockUserStore) Delete(arg0 context.Context, arg1 *types.User) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Delete indicates an expected call of Delete.
|
|
func (mr *MockUserStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockUserStore)(nil).Delete), arg0, arg1)
|
|
}
|
|
|
|
// Find mocks base method.
|
|
func (m *MockUserStore) Find(arg0 context.Context, arg1 int64) (*types.User, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Find", arg0, arg1)
|
|
ret0, _ := ret[0].(*types.User)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Find indicates an expected call of Find.
|
|
func (mr *MockUserStoreMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockUserStore)(nil).Find), arg0, arg1)
|
|
}
|
|
|
|
// FindEmail mocks base method.
|
|
func (m *MockUserStore) FindEmail(arg0 context.Context, arg1 string) (*types.User, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindEmail", arg0, arg1)
|
|
ret0, _ := ret[0].(*types.User)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindEmail indicates an expected call of FindEmail.
|
|
func (mr *MockUserStoreMockRecorder) FindEmail(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindEmail", reflect.TypeOf((*MockUserStore)(nil).FindEmail), arg0, arg1)
|
|
}
|
|
|
|
// FindKey mocks base method.
|
|
func (m *MockUserStore) FindKey(arg0 context.Context, arg1 string) (*types.User, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindKey", arg0, arg1)
|
|
ret0, _ := ret[0].(*types.User)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindKey indicates an expected call of FindKey.
|
|
func (mr *MockUserStoreMockRecorder) FindKey(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindKey", reflect.TypeOf((*MockUserStore)(nil).FindKey), arg0, arg1)
|
|
}
|
|
|
|
// List mocks base method.
|
|
func (m *MockUserStore) List(arg0 context.Context, arg1 types.UserFilter) ([]*types.User, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "List", arg0, arg1)
|
|
ret0, _ := ret[0].([]*types.User)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// List indicates an expected call of List.
|
|
func (mr *MockUserStoreMockRecorder) List(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockUserStore)(nil).List), arg0, arg1)
|
|
}
|
|
|
|
// Update mocks base method.
|
|
func (m *MockUserStore) Update(arg0 context.Context, arg1 *types.User) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Update", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Update indicates an expected call of Update.
|
|
func (mr *MockUserStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockUserStore)(nil).Update), arg0, arg1)
|
|
}
|