Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRepository

type AppRepository struct {
	mock.Mock
}

AppRepository is an autogenerated mock type for the AppRepository type

func NewAppRepository

func NewAppRepository(t mockConstructorTestingTNewAppRepository) *AppRepository

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

func (*AppRepository) CheckAppExists

func (_m *AppRepository) CheckAppExists(appNames []string) ([]*app.App, error)

CheckAppExists provides a mock function with given fields: appNames

func (*AppRepository) FetchAppsByFilterV2

func (_m *AppRepository) FetchAppsByFilterV2(appNameIncludes string, appNameExcludes string, environmentId int) ([]*app.App, error)

FetchAppsByFilterV2 provides a mock function with given fields: appNameIncludes, appNameExcludes, environmentId

func (*AppRepository) FindActiveByName

func (_m *AppRepository) FindActiveByName(appName string) (*app.App, error)

FindActiveByName provides a mock function with given fields: appName

func (*AppRepository) FindActiveListByName

func (_m *AppRepository) FindActiveListByName(appName string) ([]*app.App, error)

FindActiveListByName provides a mock function with given fields: appName

func (*AppRepository) FindAll

func (_m *AppRepository) FindAll() ([]*app.App, error)

FindAll provides a mock function with given fields:

func (*AppRepository) FindAllActiveAppsWithTeam

func (_m *AppRepository) FindAllActiveAppsWithTeam() ([]*app.App, error)

FindAllActiveAppsWithTeam provides a mock function with given fields:

func (*AppRepository) FindAllMatchesByAppName

func (_m *AppRepository) FindAllMatchesByAppName(appName string) ([]*app.App, error)

FindAllMatchesByAppName provides a mock function with given fields: appName

func (*AppRepository) FindAppAndProjectByAppId

func (_m *AppRepository) FindAppAndProjectByAppId(appId int) (*app.App, error)

FindAppAndProjectByAppId provides a mock function with given fields: appId

func (*AppRepository) FindAppAndProjectByAppName

func (_m *AppRepository) FindAppAndProjectByAppName(appName string) (*app.App, error)

FindAppAndProjectByAppName provides a mock function with given fields: appName

func (*AppRepository) FindAppsByEnvironmentId

func (_m *AppRepository) FindAppsByEnvironmentId(environmentId int) ([]app.App, error)

FindAppsByEnvironmentId provides a mock function with given fields: environmentId

func (*AppRepository) FindAppsByTeamId

func (_m *AppRepository) FindAppsByTeamId(teamId int) ([]*app.App, error)

FindAppsByTeamId provides a mock function with given fields: teamId

func (*AppRepository) FindAppsByTeamIds

func (_m *AppRepository) FindAppsByTeamIds(teamId []int, appType string) ([]app.App, error)

FindAppsByTeamIds provides a mock function with given fields: teamId, appType

func (*AppRepository) FindAppsByTeamName

func (_m *AppRepository) FindAppsByTeamName(teamName string) ([]app.App, error)

FindAppsByTeamName provides a mock function with given fields: teamName

func (*AppRepository) FindById

func (_m *AppRepository) FindById(id int) (*app.App, error)

FindById provides a mock function with given fields: id

func (*AppRepository) FindByIds

func (_m *AppRepository) FindByIds(ids []*int) ([]*app.App, error)

FindByIds provides a mock function with given fields: ids

func (*AppRepository) FindIdsByTeamIds

func (_m *AppRepository) FindIdsByTeamIds(teamIds []int) ([]int, error)

FindIdsByTeamIds provides a mock function with given fields: teamIds

func (*AppRepository) GetConnection

func (_m *AppRepository) GetConnection() *pg.DB

GetConnection provides a mock function with given fields:

func (*AppRepository) Save

func (_m *AppRepository) Save(pipelineGroup *app.App) error

Save provides a mock function with given fields: pipelineGroup

func (*AppRepository) SaveWithTxn

func (_m *AppRepository) SaveWithTxn(pipelineGroup *app.App, tx *pg.Tx) error

SaveWithTxn provides a mock function with given fields: pipelineGroup, tx

func (*AppRepository) Update

func (_m *AppRepository) Update(_a0 *app.App) error

Update provides a mock function with given fields: _a0

func (*AppRepository) UpdateWithTxn

func (_m *AppRepository) UpdateWithTxn(_a0 *app.App, tx *pg.Tx) error

UpdateWithTxn provides a mock function with given fields: _a0, tx

Jump to

Keyboard shortcuts

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