Documentation ¶
Overview ¶
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code. For testing use only.
Index ¶
- func NewMockStore(funcs ...func(*mockdb.MockStore)) func(*gomock.Controller) *mockdb.MockStore
- func WithFailedGetEntitiesByProjectHierarchy(err error) func(*mockdb.MockStore)
- func WithFailedGetInstallationIDByAppID(err error) func(*mockdb.MockStore)
- func WithFailedGetProviderByID(err error) func(*mockdb.MockStore)
- func WithRollbackTransaction() func(*mockdb.MockStore)
- func WithSuccessfulDeleteEntity(entID, projectID uuid.UUID) func(*mockdb.MockStore)
- func WithSuccessfulGetArtifactByID(artifact db.Artifact) func(*mockdb.MockStore)
- func WithSuccessfulGetEntitiesByProjectHierarchy(entities []db.EntityInstance, expectedProjectIDs []uuid.UUID) func(*mockdb.MockStore)
- func WithSuccessfulGetFeatureInProject(active bool) func(*mockdb.MockStore)
- func WithSuccessfulGetInstallationIDByAppID(provider db.ProviderGithubAppInstallation, installationID int64) func(*mockdb.MockStore)
- func WithSuccessfulGetProviderByID(provider db.Provider, providerID uuid.UUID) func(*mockdb.MockStore)
- func WithSuccessfulGetRepositoryByRepoID(repository db.Repository) func(*mockdb.MockStore)
- func WithSuccessfulUpsertArtifact(artifact db.Artifact) func(*mockdb.MockStore)
- func WithSuccessfulUpsertPullRequest(pullRequest db.PullRequest) func(*mockdb.MockStore)
- func WithSuccessfulUpsertPullRequestWithParams(pullRequest db.PullRequest, instance db.EntityInstance, ...) func(*mockdb.MockStore)
- func WithSuccessfullGetEntityByID(expID uuid.UUID, entity db.EntityInstance) func(*mockdb.MockStore)
- func WithTransaction() func(*mockdb.MockStore)
- type MockStoreBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockStore ¶
func WithRollbackTransaction ¶
func WithSuccessfulGetInstallationIDByAppID ¶
func WithSuccessfulGetInstallationIDByAppID( provider db.ProviderGithubAppInstallation, installationID int64, ) func(*mockdb.MockStore)
func WithSuccessfulGetRepositoryByRepoID ¶
func WithSuccessfulGetRepositoryByRepoID( repository db.Repository, ) func(*mockdb.MockStore)
func WithSuccessfulUpsertPullRequest ¶
func WithSuccessfulUpsertPullRequest( pullRequest db.PullRequest, ) func(*mockdb.MockStore)
func WithSuccessfulUpsertPullRequestWithParams ¶
func WithSuccessfulUpsertPullRequestWithParams( pullRequest db.PullRequest, instance db.EntityInstance, entParams db.CreateOrEnsureEntityByIDParams, ) func(*mockdb.MockStore)
func WithTransaction ¶
Types ¶
type MockStoreBuilder ¶
type MockStoreBuilder = func(*gomock.Controller) *mockdb.MockStore
Click to show internal directories.
Click to hide internal directories.