mocks

package
v0.0.0-...-ad8cac9 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoManager

type RepoManager struct {
	mock.Mock
}

RepoManager is an autogenerated mock type for the RepoManager type

func NewRepoManager

func NewRepoManager(t mockConstructorTestingTNewRepoManager) *RepoManager

NewRepoManager creates a new instance of RepoManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RepoManager) AddRepo

func (_m *RepoManager) AddRepo(material []*sql.GitMaterial) ([]*sql.GitMaterial, error)

AddRepo provides a mock function with given fields: material

func (*RepoManager) FetchChanges

func (_m *RepoManager) FetchChanges(pipelineMaterialId int, from string, to string, count int) (*git.MaterialChangeResp, error)

FetchChanges provides a mock function with given fields: pipelineMaterialId, from, to, count

func (*RepoManager) GetAllWebhookEventConfigForHost

func (_m *RepoManager) GetAllWebhookEventConfigForHost(gitHostId int) ([]*git.WebhookEventConfig, error)

GetAllWebhookEventConfigForHost provides a mock function with given fields: gitHostId

func (*RepoManager) GetCommitInfoForTag

func (_m *RepoManager) GetCommitInfoForTag(request *git.CommitMetadataRequest) (*git.GitCommit, error)

GetCommitInfoForTag provides a mock function with given fields: request

func (*RepoManager) GetCommitMetadata

func (_m *RepoManager) GetCommitMetadata(pipelineMaterialId int, gitHash string) (*git.GitCommit, error)

GetCommitMetadata provides a mock function with given fields: pipelineMaterialId, gitHash

func (*RepoManager) GetCommitMetadataForPipelineMaterial

func (_m *RepoManager) GetCommitMetadataForPipelineMaterial(pipelineMaterialId int, gitHash string) (*git.GitCommit, error)

GetCommitMetadataForPipelineMaterial provides a mock function with given fields: pipelineMaterialId, gitHash

func (*RepoManager) GetHeadForPipelineMaterials

func (_m *RepoManager) GetHeadForPipelineMaterials(ids []int) ([]*git.CiPipelineMaterialBean, error)

GetHeadForPipelineMaterials provides a mock function with given fields: ids

func (*RepoManager) GetLatestCommitForBranch

func (_m *RepoManager) GetLatestCommitForBranch(pipelineMaterialId int, branchName string) (*git.GitCommit, error)

GetLatestCommitForBranch provides a mock function with given fields: pipelineMaterialId, branchName

func (*RepoManager) GetReleaseChanges

func (_m *RepoManager) GetReleaseChanges(request *pkg.ReleaseChangesRequest) (*git.GitChanges, error)

GetReleaseChanges provides a mock function with given fields: request

func (*RepoManager) GetWebhookAndCiDataById

func (_m *RepoManager) GetWebhookAndCiDataById(id int, ciPipelineMaterialId int) (*git.WebhookAndCiData, error)

GetWebhookAndCiDataById provides a mock function with given fields: id, ciPipelineMaterialId

func (*RepoManager) GetWebhookEventConfig

func (_m *RepoManager) GetWebhookEventConfig(eventId int) (*git.WebhookEventConfig, error)

GetWebhookEventConfig provides a mock function with given fields: eventId

func (*RepoManager) GetWebhookPayloadDataForPipelineMaterialId

func (_m *RepoManager) GetWebhookPayloadDataForPipelineMaterialId(request *git.WebhookPayloadDataRequest) (*git.WebhookPayloadDataResponse, error)

GetWebhookPayloadDataForPipelineMaterialId provides a mock function with given fields: request

func (*RepoManager) GetWebhookPayloadFilterDataForPipelineMaterialId

func (_m *RepoManager) GetWebhookPayloadFilterDataForPipelineMaterialId(request *git.WebhookPayloadFilterDataRequest) (*git.WebhookPayloadFilterDataResponse, error)

GetWebhookPayloadFilterDataForPipelineMaterialId provides a mock function with given fields: request

func (*RepoManager) RefreshGitMaterial

RefreshGitMaterial provides a mock function with given fields: req

func (*RepoManager) ReloadAllRepo

func (_m *RepoManager) ReloadAllRepo()

ReloadAllRepo provides a mock function with given fields:

func (*RepoManager) ResetRepo

func (_m *RepoManager) ResetRepo(materialId int) error

ResetRepo provides a mock function with given fields: materialId

func (*RepoManager) SaveGitProvider

func (_m *RepoManager) SaveGitProvider(provider *sql.GitProvider) (*sql.GitProvider, error)

SaveGitProvider provides a mock function with given fields: provider

func (*RepoManager) SavePipelineMaterial

func (_m *RepoManager) SavePipelineMaterial(material []*sql.CiPipelineMaterial) ([]*sql.CiPipelineMaterial, error)

SavePipelineMaterial provides a mock function with given fields: material

func (*RepoManager) UpdateRepo

func (_m *RepoManager) UpdateRepo(material *sql.GitMaterial) (*sql.GitMaterial, error)

UpdateRepo provides a mock function with given fields: material

Jump to

Keyboard shortcuts

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