mock

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInteractor

type MockInteractor struct {
	// contains filtered or unexported fields
}

MockInteractor is a mock of Interactor interface.

func NewMockInteractor

func NewMockInteractor(ctrl *gomock.Controller) *MockInteractor

NewMockInteractor creates a new mock instance.

func (*MockInteractor) ActivateRepo

func (m *MockInteractor) ActivateRepo(ctx context.Context, u *ent.User, r *ent.Repo) (*ent.Repo, error)

ActivateRepo mocks base method.

func (*MockInteractor) CompareCommits

func (m *MockInteractor) CompareCommits(ctx context.Context, u *ent.User, r *ent.Repo, base, head string, opt *interactor.ListOptions) ([]*extent.Commit, []*extent.CommitFile, error)

CompareCommits mocks base method.

func (*MockInteractor) CreateLock

func (m *MockInteractor) CreateLock(ctx context.Context, l *ent.Lock) (*ent.Lock, error)

CreateLock mocks base method.

func (*MockInteractor) CreateRemoteDeploymentStatus

func (m *MockInteractor) CreateRemoteDeploymentStatus(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, ds *extent.RemoteDeploymentStatus) (*extent.RemoteDeploymentStatus, error)

CreateRemoteDeploymentStatus mocks base method.

func (*MockInteractor) DeactivateRepo

func (m *MockInteractor) DeactivateRepo(ctx context.Context, u *ent.User, r *ent.Repo) (*ent.Repo, error)

DeactivateRepo mocks base method.

func (*MockInteractor) DeleteLock

func (m *MockInteractor) DeleteLock(ctx context.Context, l *ent.Lock) error

DeleteLock mocks base method.

func (*MockInteractor) Deploy

func (m *MockInteractor) Deploy(ctx context.Context, u *ent.User, re *ent.Repo, d *ent.Deployment, env *extent.Env) (*ent.Deployment, error)

Deploy mocks base method.

func (*MockInteractor) DeployToRemote

func (m *MockInteractor) DeployToRemote(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, env *extent.Env) (*ent.Deployment, error)

DeployToRemote mocks base method.

func (*MockInteractor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInteractor) FindDeploymentByID

func (m *MockInteractor) FindDeploymentByID(ctx context.Context, id int) (*ent.Deployment, error)

FindDeploymentByID mocks base method.

func (*MockInteractor) FindDeploymentOfRepoByNumber

func (m *MockInteractor) FindDeploymentOfRepoByNumber(ctx context.Context, r *ent.Repo, number int) (*ent.Deployment, error)

FindDeploymentOfRepoByNumber mocks base method.

func (*MockInteractor) FindLockByID

func (m *MockInteractor) FindLockByID(ctx context.Context, id int) (*ent.Lock, error)

FindLockByID mocks base method.

func (*MockInteractor) FindPermOfRepo

func (m *MockInteractor) FindPermOfRepo(ctx context.Context, r *ent.Repo, u *ent.User) (*ent.Perm, error)

FindPermOfRepo mocks base method.

func (*MockInteractor) FindPrevSuccessDeployment

func (m *MockInteractor) FindPrevSuccessDeployment(ctx context.Context, d *ent.Deployment) (*ent.Deployment, error)

FindPrevSuccessDeployment mocks base method.

func (*MockInteractor) FindRepoOfUserByID

func (m *MockInteractor) FindRepoOfUserByID(ctx context.Context, u *ent.User, id int64) (*ent.Repo, error)

FindRepoOfUserByID mocks base method.

func (*MockInteractor) FindRepoOfUserByNamespaceName

func (m *MockInteractor) FindRepoOfUserByNamespaceName(ctx context.Context, u *ent.User, opt *interactor.FindRepoOfUserByNamespaceNameOptions) (*ent.Repo, error)

FindRepoOfUserByNamespaceName mocks base method.

func (*MockInteractor) FindReviewOfUser

func (m *MockInteractor) FindReviewOfUser(ctx context.Context, u *ent.User, d *ent.Deployment) (*ent.Review, error)

FindReviewOfUser mocks base method.

func (*MockInteractor) FindUserByID

func (m *MockInteractor) FindUserByID(ctx context.Context, id int64) (*ent.User, error)

FindUserByID mocks base method.

func (*MockInteractor) GetBranch

func (m *MockInteractor) GetBranch(ctx context.Context, u *ent.User, r *ent.Repo, branch string) (*extent.Branch, error)

GetBranch mocks base method.

func (*MockInteractor) GetCommit

func (m *MockInteractor) GetCommit(ctx context.Context, u *ent.User, r *ent.Repo, sha string) (*extent.Commit, error)

GetCommit mocks base method.

func (*MockInteractor) GetConfig

func (m *MockInteractor) GetConfig(ctx context.Context, u *ent.User, r *ent.Repo) (*extent.Config, error)

GetConfig mocks base method.

func (*MockInteractor) GetDefaultBranch

func (m *MockInteractor) GetDefaultBranch(ctx context.Context, u *ent.User, r *ent.Repo) (*extent.Branch, error)

GetDefaultBranch mocks base method.

func (*MockInteractor) GetEvaluatedConfig

func (m *MockInteractor) GetEvaluatedConfig(ctx context.Context, u *ent.User, r *ent.Repo, v *extent.EvalValues) (*extent.Config, error)

GetEvaluatedConfig mocks base method.

func (*MockInteractor) GetTag

func (m *MockInteractor) GetTag(ctx context.Context, u *ent.User, r *ent.Repo, tag string) (*extent.Tag, error)

GetTag mocks base method.

func (*MockInteractor) HasLockOfRepoForEnv

func (m *MockInteractor) HasLockOfRepoForEnv(ctx context.Context, r *ent.Repo, env string) (bool, error)

HasLockOfRepoForEnv mocks base method.

func (*MockInteractor) ListBranches

func (m *MockInteractor) ListBranches(ctx context.Context, u *ent.User, r *ent.Repo, opt *interactor.ListOptions) ([]*extent.Branch, error)

ListBranches mocks base method.

func (*MockInteractor) ListCommitStatuses

func (m *MockInteractor) ListCommitStatuses(ctx context.Context, u *ent.User, r *ent.Repo, sha string) ([]*extent.Status, error)

ListCommitStatuses mocks base method.

func (*MockInteractor) ListCommits

func (m *MockInteractor) ListCommits(ctx context.Context, u *ent.User, r *ent.Repo, branch string, opt *interactor.ListOptions) ([]*extent.Commit, error)

ListCommits mocks base method.

func (*MockInteractor) ListDeploymentStatuses

func (m *MockInteractor) ListDeploymentStatuses(ctx context.Context, d *ent.Deployment) ([]*ent.DeploymentStatus, error)

ListDeploymentStatuses mocks base method.

func (*MockInteractor) ListDeploymentsOfRepo

func (m *MockInteractor) ListDeploymentsOfRepo(ctx context.Context, r *ent.Repo, opt *interactor.ListDeploymentsOfRepoOptions) ([]*ent.Deployment, error)

ListDeploymentsOfRepo mocks base method.

func (*MockInteractor) ListLocksOfRepo

func (m *MockInteractor) ListLocksOfRepo(ctx context.Context, r *ent.Repo) ([]*ent.Lock, error)

ListLocksOfRepo mocks base method.

func (*MockInteractor) ListPermsOfRepo

func (m *MockInteractor) ListPermsOfRepo(ctx context.Context, r *ent.Repo, opt *interactor.ListPermsOfRepoOptions) ([]*ent.Perm, error)

ListPermsOfRepo mocks base method.

func (*MockInteractor) ListReposOfUser

func (m *MockInteractor) ListReposOfUser(ctx context.Context, u *ent.User, opt *interactor.ListReposOfUserOptions) ([]*ent.Repo, error)

ListReposOfUser mocks base method.

func (*MockInteractor) ListReviews

func (m *MockInteractor) ListReviews(ctx context.Context, d *ent.Deployment) ([]*ent.Review, error)

ListReviews mocks base method.

func (*MockInteractor) ListTags

func (m *MockInteractor) ListTags(ctx context.Context, u *ent.User, r *ent.Repo, opt *interactor.ListOptions) ([]*extent.Tag, error)

ListTags mocks base method.

func (*MockInteractor) RespondReview

func (m *MockInteractor) RespondReview(ctx context.Context, rv *ent.Review) (*ent.Review, error)

RespondReview mocks base method.

func (*MockInteractor) UpdateLock

func (m *MockInteractor) UpdateLock(ctx context.Context, l *ent.Lock) (*ent.Lock, error)

UpdateLock mocks base method.

func (*MockInteractor) UpdateRepo

func (m *MockInteractor) UpdateRepo(ctx context.Context, r *ent.Repo) (*ent.Repo, error)

UpdateRepo mocks base method.

func (*MockInteractor) UpdateReview

func (m *MockInteractor) UpdateReview(ctx context.Context, rv *ent.Review) (*ent.Review, error)

UpdateReview mocks base method.

type MockInteractorMockRecorder

type MockInteractorMockRecorder struct {
	// contains filtered or unexported fields
}

MockInteractorMockRecorder is the mock recorder for MockInteractor.

func (*MockInteractorMockRecorder) ActivateRepo

func (mr *MockInteractorMockRecorder) ActivateRepo(ctx, u, r interface{}) *gomock.Call

ActivateRepo indicates an expected call of ActivateRepo.

func (*MockInteractorMockRecorder) CompareCommits

func (mr *MockInteractorMockRecorder) CompareCommits(ctx, u, r, base, head, opt interface{}) *gomock.Call

CompareCommits indicates an expected call of CompareCommits.

func (*MockInteractorMockRecorder) CreateLock

func (mr *MockInteractorMockRecorder) CreateLock(ctx, l interface{}) *gomock.Call

CreateLock indicates an expected call of CreateLock.

func (*MockInteractorMockRecorder) CreateRemoteDeploymentStatus

func (mr *MockInteractorMockRecorder) CreateRemoteDeploymentStatus(ctx, u, r, d, ds interface{}) *gomock.Call

CreateRemoteDeploymentStatus indicates an expected call of CreateRemoteDeploymentStatus.

func (*MockInteractorMockRecorder) DeactivateRepo

func (mr *MockInteractorMockRecorder) DeactivateRepo(ctx, u, r interface{}) *gomock.Call

DeactivateRepo indicates an expected call of DeactivateRepo.

func (*MockInteractorMockRecorder) DeleteLock

func (mr *MockInteractorMockRecorder) DeleteLock(ctx, l interface{}) *gomock.Call

DeleteLock indicates an expected call of DeleteLock.

func (*MockInteractorMockRecorder) Deploy

func (mr *MockInteractorMockRecorder) Deploy(ctx, u, re, d, env interface{}) *gomock.Call

Deploy indicates an expected call of Deploy.

func (*MockInteractorMockRecorder) DeployToRemote

func (mr *MockInteractorMockRecorder) DeployToRemote(ctx, u, r, d, env interface{}) *gomock.Call

DeployToRemote indicates an expected call of DeployToRemote.

func (*MockInteractorMockRecorder) FindDeploymentByID

func (mr *MockInteractorMockRecorder) FindDeploymentByID(ctx, id interface{}) *gomock.Call

FindDeploymentByID indicates an expected call of FindDeploymentByID.

func (*MockInteractorMockRecorder) FindDeploymentOfRepoByNumber

func (mr *MockInteractorMockRecorder) FindDeploymentOfRepoByNumber(ctx, r, number interface{}) *gomock.Call

FindDeploymentOfRepoByNumber indicates an expected call of FindDeploymentOfRepoByNumber.

func (*MockInteractorMockRecorder) FindLockByID

func (mr *MockInteractorMockRecorder) FindLockByID(ctx, id interface{}) *gomock.Call

FindLockByID indicates an expected call of FindLockByID.

func (*MockInteractorMockRecorder) FindPermOfRepo

func (mr *MockInteractorMockRecorder) FindPermOfRepo(ctx, r, u interface{}) *gomock.Call

FindPermOfRepo indicates an expected call of FindPermOfRepo.

func (*MockInteractorMockRecorder) FindPrevSuccessDeployment

func (mr *MockInteractorMockRecorder) FindPrevSuccessDeployment(ctx, d interface{}) *gomock.Call

FindPrevSuccessDeployment indicates an expected call of FindPrevSuccessDeployment.

func (*MockInteractorMockRecorder) FindRepoOfUserByID

func (mr *MockInteractorMockRecorder) FindRepoOfUserByID(ctx, u, id interface{}) *gomock.Call

FindRepoOfUserByID indicates an expected call of FindRepoOfUserByID.

func (*MockInteractorMockRecorder) FindRepoOfUserByNamespaceName

func (mr *MockInteractorMockRecorder) FindRepoOfUserByNamespaceName(ctx, u, opt interface{}) *gomock.Call

FindRepoOfUserByNamespaceName indicates an expected call of FindRepoOfUserByNamespaceName.

func (*MockInteractorMockRecorder) FindReviewOfUser

func (mr *MockInteractorMockRecorder) FindReviewOfUser(ctx, u, d interface{}) *gomock.Call

FindReviewOfUser indicates an expected call of FindReviewOfUser.

func (*MockInteractorMockRecorder) FindUserByID

func (mr *MockInteractorMockRecorder) FindUserByID(ctx, id interface{}) *gomock.Call

FindUserByID indicates an expected call of FindUserByID.

func (*MockInteractorMockRecorder) GetBranch

func (mr *MockInteractorMockRecorder) GetBranch(ctx, u, r, branch interface{}) *gomock.Call

GetBranch indicates an expected call of GetBranch.

func (*MockInteractorMockRecorder) GetCommit

func (mr *MockInteractorMockRecorder) GetCommit(ctx, u, r, sha interface{}) *gomock.Call

GetCommit indicates an expected call of GetCommit.

func (*MockInteractorMockRecorder) GetConfig

func (mr *MockInteractorMockRecorder) GetConfig(ctx, u, r interface{}) *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockInteractorMockRecorder) GetDefaultBranch

func (mr *MockInteractorMockRecorder) GetDefaultBranch(ctx, u, r interface{}) *gomock.Call

GetDefaultBranch indicates an expected call of GetDefaultBranch.

func (*MockInteractorMockRecorder) GetEvaluatedConfig

func (mr *MockInteractorMockRecorder) GetEvaluatedConfig(ctx, u, r, v interface{}) *gomock.Call

GetEvaluatedConfig indicates an expected call of GetEvaluatedConfig.

func (*MockInteractorMockRecorder) GetTag

func (mr *MockInteractorMockRecorder) GetTag(ctx, u, r, tag interface{}) *gomock.Call

GetTag indicates an expected call of GetTag.

func (*MockInteractorMockRecorder) HasLockOfRepoForEnv

func (mr *MockInteractorMockRecorder) HasLockOfRepoForEnv(ctx, r, env interface{}) *gomock.Call

HasLockOfRepoForEnv indicates an expected call of HasLockOfRepoForEnv.

func (*MockInteractorMockRecorder) ListBranches

func (mr *MockInteractorMockRecorder) ListBranches(ctx, u, r, opt interface{}) *gomock.Call

ListBranches indicates an expected call of ListBranches.

func (*MockInteractorMockRecorder) ListCommitStatuses

func (mr *MockInteractorMockRecorder) ListCommitStatuses(ctx, u, r, sha interface{}) *gomock.Call

ListCommitStatuses indicates an expected call of ListCommitStatuses.

func (*MockInteractorMockRecorder) ListCommits

func (mr *MockInteractorMockRecorder) ListCommits(ctx, u, r, branch, opt interface{}) *gomock.Call

ListCommits indicates an expected call of ListCommits.

func (*MockInteractorMockRecorder) ListDeploymentStatuses

func (mr *MockInteractorMockRecorder) ListDeploymentStatuses(ctx, d interface{}) *gomock.Call

ListDeploymentStatuses indicates an expected call of ListDeploymentStatuses.

func (*MockInteractorMockRecorder) ListDeploymentsOfRepo

func (mr *MockInteractorMockRecorder) ListDeploymentsOfRepo(ctx, r, opt interface{}) *gomock.Call

ListDeploymentsOfRepo indicates an expected call of ListDeploymentsOfRepo.

func (*MockInteractorMockRecorder) ListLocksOfRepo

func (mr *MockInteractorMockRecorder) ListLocksOfRepo(ctx, r interface{}) *gomock.Call

ListLocksOfRepo indicates an expected call of ListLocksOfRepo.

func (*MockInteractorMockRecorder) ListPermsOfRepo

func (mr *MockInteractorMockRecorder) ListPermsOfRepo(ctx, r, opt interface{}) *gomock.Call

ListPermsOfRepo indicates an expected call of ListPermsOfRepo.

func (*MockInteractorMockRecorder) ListReposOfUser

func (mr *MockInteractorMockRecorder) ListReposOfUser(ctx, u, opt interface{}) *gomock.Call

ListReposOfUser indicates an expected call of ListReposOfUser.

func (*MockInteractorMockRecorder) ListReviews

func (mr *MockInteractorMockRecorder) ListReviews(ctx, d interface{}) *gomock.Call

ListReviews indicates an expected call of ListReviews.

func (*MockInteractorMockRecorder) ListTags

func (mr *MockInteractorMockRecorder) ListTags(ctx, u, r, opt interface{}) *gomock.Call

ListTags indicates an expected call of ListTags.

func (*MockInteractorMockRecorder) RespondReview

func (mr *MockInteractorMockRecorder) RespondReview(ctx, rv interface{}) *gomock.Call

RespondReview indicates an expected call of RespondReview.

func (*MockInteractorMockRecorder) UpdateLock

func (mr *MockInteractorMockRecorder) UpdateLock(ctx, l interface{}) *gomock.Call

UpdateLock indicates an expected call of UpdateLock.

func (*MockInteractorMockRecorder) UpdateRepo

func (mr *MockInteractorMockRecorder) UpdateRepo(ctx, r interface{}) *gomock.Call

UpdateRepo indicates an expected call of UpdateRepo.

func (*MockInteractorMockRecorder) UpdateReview

func (mr *MockInteractorMockRecorder) UpdateReview(ctx, rv interface{}) *gomock.Call

UpdateReview indicates an expected call of UpdateReview.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL