mocks

package
v0.6.9-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CiTemplateOverrideRepository

type CiTemplateOverrideRepository struct {
	mock.Mock
}

CiTemplateOverrideRepository is an autogenerated mock type for the CiTemplateOverrideRepository type

func NewCiTemplateOverrideRepository

func NewCiTemplateOverrideRepository(t mockConstructorTestingTNewCiTemplateOverrideRepository) *CiTemplateOverrideRepository

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

func (*CiTemplateOverrideRepository) FindByAppId

FindByAppId provides a mock function with given fields: appId

func (*CiTemplateOverrideRepository) FindByCiPipelineId

func (_m *CiTemplateOverrideRepository) FindByCiPipelineId(ciPipelineId int) (*pipelineConfig.CiTemplateOverride, error)

FindByCiPipelineId provides a mock function with given fields: ciPipelineId

func (*CiTemplateOverrideRepository) Save

Save provides a mock function with given fields: templateOverrideConfig

func (*CiTemplateOverrideRepository) Update

Update provides a mock function with given fields: templateOverrideConfig

type CiTemplateRepository

type CiTemplateRepository struct {
	mock.Mock
}

CiTemplateRepository is an autogenerated mock type for the CiTemplateRepository type

func NewCiTemplateRepository

func NewCiTemplateRepository(t mockConstructorTestingTNewCiTemplateRepository) *CiTemplateRepository

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

func (*CiTemplateRepository) FindByAppId

func (_m *CiTemplateRepository) FindByAppId(appId int) (*pipelineConfig.CiTemplate, error)

FindByAppId provides a mock function with given fields: appId

func (*CiTemplateRepository) FindByDockerRegistryId

func (_m *CiTemplateRepository) FindByDockerRegistryId(dockerRegistryId string) ([]*pipelineConfig.CiTemplate, error)

FindByDockerRegistryId provides a mock function with given fields: dockerRegistryId

func (*CiTemplateRepository) FindNumberOfAppsWithDockerConfigured

func (_m *CiTemplateRepository) FindNumberOfAppsWithDockerConfigured(appIds []int) (int, error)

FindNumberOfAppsWithDockerConfigured provides a mock function with given fields: appIds

func (*CiTemplateRepository) Save

Save provides a mock function with given fields: material

func (*CiTemplateRepository) Update

func (_m *CiTemplateRepository) Update(material *pipelineConfig.CiTemplate) error

Update 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