mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockArchiverService

type MockArchiverService struct {
	mock.Mock
}

MockArchiverService is an autogenerated mock type for the ArchiverService type

func NewMockArchiverService

func NewMockArchiverService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockArchiverService

NewMockArchiverService creates a new instance of MockArchiverService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockArchiverService) CreateArchive

func (_mock *MockArchiverService) CreateArchive(buildInfo *models.BuildInfo, buildResult models.BuildResult) (models.ArchiveResult, error)

CreateArchive provides a mock function for the type MockArchiverService

func (*MockArchiverService) CreateArchives

func (_mock *MockArchiverService) CreateArchives(buildInfo *models.BuildInfo, buildResults []models.BuildResult) ([]models.ArchiveResult, error)

CreateArchives provides a mock function for the type MockArchiverService

func (*MockArchiverService) EXPECT

type MockArchiverService_CreateArchive_Call

type MockArchiverService_CreateArchive_Call struct {
	*mock.Call
}

MockArchiverService_CreateArchive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateArchive'

func (*MockArchiverService_CreateArchive_Call) Return

func (*MockArchiverService_CreateArchive_Call) Run

func (*MockArchiverService_CreateArchive_Call) RunAndReturn

type MockArchiverService_CreateArchives_Call

type MockArchiverService_CreateArchives_Call struct {
	*mock.Call
}

MockArchiverService_CreateArchives_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateArchives'

func (*MockArchiverService_CreateArchives_Call) Return

func (*MockArchiverService_CreateArchives_Call) Run

func (*MockArchiverService_CreateArchives_Call) RunAndReturn

type MockArchiverService_Expecter

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

func (*MockArchiverService_Expecter) CreateArchive

func (_e *MockArchiverService_Expecter) CreateArchive(buildInfo interface{}, buildResult interface{}) *MockArchiverService_CreateArchive_Call

CreateArchive is a helper method to define mock.On call

  • buildInfo *models.BuildInfo
  • buildResult models.BuildResult

func (*MockArchiverService_Expecter) CreateArchives

func (_e *MockArchiverService_Expecter) CreateArchives(buildInfo interface{}, buildResults interface{}) *MockArchiverService_CreateArchives_Call

CreateArchives is a helper method to define mock.On call

  • buildInfo *models.BuildInfo
  • buildResults []models.BuildResult

type MockBuilderService

type MockBuilderService struct {
	mock.Mock
}

MockBuilderService is an autogenerated mock type for the BuilderService type

func NewMockBuilderService

func NewMockBuilderService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBuilderService

NewMockBuilderService creates a new instance of MockBuilderService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockBuilderService) BuildTargets

func (_mock *MockBuilderService) BuildTargets(buildInfo *models.BuildInfo, buildConfig models.BuildConfig) ([]models.BuildResult, error)

BuildTargets provides a mock function for the type MockBuilderService

func (*MockBuilderService) EXPECT

type MockBuilderService_BuildTargets_Call

type MockBuilderService_BuildTargets_Call struct {
	*mock.Call
}

MockBuilderService_BuildTargets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildTargets'

func (*MockBuilderService_BuildTargets_Call) Return

func (*MockBuilderService_BuildTargets_Call) Run

func (*MockBuilderService_BuildTargets_Call) RunAndReturn

type MockBuilderService_Expecter

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

func (*MockBuilderService_Expecter) BuildTargets

func (_e *MockBuilderService_Expecter) BuildTargets(buildInfo interface{}, buildConfig interface{}) *MockBuilderService_BuildTargets_Call

BuildTargets is a helper method to define mock.On call

  • buildInfo *models.BuildInfo
  • buildConfig models.BuildConfig

type MockConfigService

type MockConfigService struct {
	mock.Mock
}

MockConfigService is an autogenerated mock type for the ConfigService type

func NewMockConfigService

func NewMockConfigService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfigService

NewMockConfigService creates a new instance of MockConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockConfigService) ConfigExists

func (_mock *MockConfigService) ConfigExists() bool

ConfigExists provides a mock function for the type MockConfigService

func (*MockConfigService) CreateDefaultConfig

func (_mock *MockConfigService) CreateDefaultConfig() error

CreateDefaultConfig provides a mock function for the type MockConfigService

func (*MockConfigService) EXPECT

func (*MockConfigService) GetDefaultConfigData

func (_mock *MockConfigService) GetDefaultConfigData() []byte

GetDefaultConfigData provides a mock function for the type MockConfigService

func (*MockConfigService) LoadConfig

func (_mock *MockConfigService) LoadConfig() (*models.Config, error)

LoadConfig provides a mock function for the type MockConfigService

type MockConfigService_ConfigExists_Call

type MockConfigService_ConfigExists_Call struct {
	*mock.Call
}

MockConfigService_ConfigExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigExists'

func (*MockConfigService_ConfigExists_Call) Return

func (*MockConfigService_ConfigExists_Call) Run

func (*MockConfigService_ConfigExists_Call) RunAndReturn

type MockConfigService_CreateDefaultConfig_Call

type MockConfigService_CreateDefaultConfig_Call struct {
	*mock.Call
}

MockConfigService_CreateDefaultConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDefaultConfig'

func (*MockConfigService_CreateDefaultConfig_Call) Return

func (*MockConfigService_CreateDefaultConfig_Call) Run

func (*MockConfigService_CreateDefaultConfig_Call) RunAndReturn

type MockConfigService_Expecter

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

func (*MockConfigService_Expecter) ConfigExists

ConfigExists is a helper method to define mock.On call

func (*MockConfigService_Expecter) CreateDefaultConfig

CreateDefaultConfig is a helper method to define mock.On call

func (*MockConfigService_Expecter) GetDefaultConfigData

GetDefaultConfigData is a helper method to define mock.On call

func (*MockConfigService_Expecter) LoadConfig

LoadConfig is a helper method to define mock.On call

type MockConfigService_GetDefaultConfigData_Call

type MockConfigService_GetDefaultConfigData_Call struct {
	*mock.Call
}

MockConfigService_GetDefaultConfigData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultConfigData'

func (*MockConfigService_GetDefaultConfigData_Call) Return

func (*MockConfigService_GetDefaultConfigData_Call) Run

func (*MockConfigService_GetDefaultConfigData_Call) RunAndReturn

type MockConfigService_LoadConfig_Call

type MockConfigService_LoadConfig_Call struct {
	*mock.Call
}

MockConfigService_LoadConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadConfig'

func (*MockConfigService_LoadConfig_Call) Return

func (*MockConfigService_LoadConfig_Call) Run

func (*MockConfigService_LoadConfig_Call) RunAndReturn

type MockFormulaService

type MockFormulaService struct {
	mock.Mock
}

MockFormulaService is an autogenerated mock type for the FormulaService type

func NewMockFormulaService

func NewMockFormulaService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFormulaService

NewMockFormulaService creates a new instance of MockFormulaService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockFormulaService) EXPECT

func (*MockFormulaService) GenerateFormula

func (_mock *MockFormulaService) GenerateFormula(buildInfo models.BuildInfo, archiveResults []models.ArchiveResult, brewConfig models.BrewConfig) error

GenerateFormula provides a mock function for the type MockFormulaService

type MockFormulaService_Expecter

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

func (*MockFormulaService_Expecter) GenerateFormula

func (_e *MockFormulaService_Expecter) GenerateFormula(buildInfo interface{}, archiveResults interface{}, brewConfig interface{}) *MockFormulaService_GenerateFormula_Call

GenerateFormula is a helper method to define mock.On call

  • buildInfo models.BuildInfo
  • archiveResults []models.ArchiveResult
  • brewConfig models.BrewConfig

type MockFormulaService_GenerateFormula_Call

type MockFormulaService_GenerateFormula_Call struct {
	*mock.Call
}

MockFormulaService_GenerateFormula_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateFormula'

func (*MockFormulaService_GenerateFormula_Call) Return

func (*MockFormulaService_GenerateFormula_Call) Run

func (*MockFormulaService_GenerateFormula_Call) RunAndReturn

type MockVersionService

type MockVersionService struct {
	mock.Mock
}

MockVersionService is an autogenerated mock type for the VersionService type

func NewMockVersionService

func NewMockVersionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVersionService

NewMockVersionService creates a new instance of MockVersionService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockVersionService) EXPECT

func (*MockVersionService) GetBuildInfo

func (_mock *MockVersionService) GetBuildInfo() (*models.BuildInfo, error)

GetBuildInfo provides a mock function for the type MockVersionService

type MockVersionService_Expecter

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

func (*MockVersionService_Expecter) GetBuildInfo

GetBuildInfo is a helper method to define mock.On call

type MockVersionService_GetBuildInfo_Call

type MockVersionService_GetBuildInfo_Call struct {
	*mock.Call
}

MockVersionService_GetBuildInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBuildInfo'

func (*MockVersionService_GetBuildInfo_Call) Return

func (*MockVersionService_GetBuildInfo_Call) Run

func (*MockVersionService_GetBuildInfo_Call) RunAndReturn

Jump to

Keyboard shortcuts

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