mocks

package
v1.463.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubRepoClient

type GithubRepoClient struct {
	mock.Mock
}

GithubRepoClient is an autogenerated mock type for the GithubRepoClient type

func NewGithubRepoClient added in v1.366.0

func NewGithubRepoClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *GithubRepoClient

NewGithubRepoClient creates a new instance of GithubRepoClient. 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 (*GithubRepoClient) CreateRelease

func (_m *GithubRepoClient) CreateRelease(ctx context.Context, owner string, repo string, release *github.RepositoryRelease) (*github.RepositoryRelease, *github.Response, error)

CreateRelease provides a mock function with given fields: ctx, owner, repo, release

func (*GithubRepoClient) DeleteReleaseAsset

func (_m *GithubRepoClient) DeleteReleaseAsset(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)

DeleteReleaseAsset provides a mock function with given fields: ctx, owner, repo, id

func (*GithubRepoClient) EXPECT added in v1.366.0

func (*GithubRepoClient) GetLatestRelease

func (_m *GithubRepoClient) GetLatestRelease(ctx context.Context, owner string, repo string) (*github.RepositoryRelease, *github.Response, error)

GetLatestRelease provides a mock function with given fields: ctx, owner, repo

func (*GithubRepoClient) ListReleaseAssets

func (_m *GithubRepoClient) ListReleaseAssets(ctx context.Context, owner string, repo string, id int64, opt *github.ListOptions) ([]*github.ReleaseAsset, *github.Response, error)

ListReleaseAssets provides a mock function with given fields: ctx, owner, repo, id, opt

func (*GithubRepoClient) UploadReleaseAsset

func (_m *GithubRepoClient) UploadReleaseAsset(ctx context.Context, owner string, repo string, id int64, opt *github.UploadOptions, file *os.File) (*github.ReleaseAsset, *github.Response, error)

UploadReleaseAsset provides a mock function with given fields: ctx, owner, repo, id, opt, file

type GithubRepoClient_CreateRelease_Call added in v1.366.0

type GithubRepoClient_CreateRelease_Call struct {
	*mock.Call
}

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

func (*GithubRepoClient_CreateRelease_Call) Return added in v1.366.0

func (*GithubRepoClient_CreateRelease_Call) Run added in v1.366.0

func (*GithubRepoClient_CreateRelease_Call) RunAndReturn added in v1.366.0

type GithubRepoClient_DeleteReleaseAsset_Call added in v1.366.0

type GithubRepoClient_DeleteReleaseAsset_Call struct {
	*mock.Call
}

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

func (*GithubRepoClient_DeleteReleaseAsset_Call) Return added in v1.366.0

func (*GithubRepoClient_DeleteReleaseAsset_Call) Run added in v1.366.0

func (*GithubRepoClient_DeleteReleaseAsset_Call) RunAndReturn added in v1.366.0

type GithubRepoClient_Expecter added in v1.366.0

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

func (*GithubRepoClient_Expecter) CreateRelease added in v1.366.0

func (_e *GithubRepoClient_Expecter) CreateRelease(ctx interface{}, owner interface{}, repo interface{}, release interface{}) *GithubRepoClient_CreateRelease_Call

CreateRelease is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • release *github.RepositoryRelease

func (*GithubRepoClient_Expecter) DeleteReleaseAsset added in v1.366.0

func (_e *GithubRepoClient_Expecter) DeleteReleaseAsset(ctx interface{}, owner interface{}, repo interface{}, id interface{}) *GithubRepoClient_DeleteReleaseAsset_Call

DeleteReleaseAsset is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • id int64

func (*GithubRepoClient_Expecter) GetLatestRelease added in v1.366.0

func (_e *GithubRepoClient_Expecter) GetLatestRelease(ctx interface{}, owner interface{}, repo interface{}) *GithubRepoClient_GetLatestRelease_Call

GetLatestRelease is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string

func (*GithubRepoClient_Expecter) ListReleaseAssets added in v1.366.0

func (_e *GithubRepoClient_Expecter) ListReleaseAssets(ctx interface{}, owner interface{}, repo interface{}, id interface{}, opt interface{}) *GithubRepoClient_ListReleaseAssets_Call

ListReleaseAssets is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • id int64
  • opt *github.ListOptions

func (*GithubRepoClient_Expecter) UploadReleaseAsset added in v1.366.0

func (_e *GithubRepoClient_Expecter) UploadReleaseAsset(ctx interface{}, owner interface{}, repo interface{}, id interface{}, opt interface{}, file interface{}) *GithubRepoClient_UploadReleaseAsset_Call

UploadReleaseAsset is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • id int64
  • opt *github.UploadOptions
  • file *os.File

type GithubRepoClient_GetLatestRelease_Call added in v1.366.0

type GithubRepoClient_GetLatestRelease_Call struct {
	*mock.Call
}

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

func (*GithubRepoClient_GetLatestRelease_Call) Return added in v1.366.0

func (*GithubRepoClient_GetLatestRelease_Call) Run added in v1.366.0

func (*GithubRepoClient_GetLatestRelease_Call) RunAndReturn added in v1.366.0

type GithubRepoClient_ListReleaseAssets_Call added in v1.366.0

type GithubRepoClient_ListReleaseAssets_Call struct {
	*mock.Call
}

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

func (*GithubRepoClient_ListReleaseAssets_Call) Return added in v1.366.0

func (*GithubRepoClient_ListReleaseAssets_Call) Run added in v1.366.0

func (*GithubRepoClient_ListReleaseAssets_Call) RunAndReturn added in v1.366.0

type GithubRepoClient_UploadReleaseAsset_Call added in v1.366.0

type GithubRepoClient_UploadReleaseAsset_Call struct {
	*mock.Call
}

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

func (*GithubRepoClient_UploadReleaseAsset_Call) Return added in v1.366.0

func (*GithubRepoClient_UploadReleaseAsset_Call) Run added in v1.366.0

func (*GithubRepoClient_UploadReleaseAsset_Call) RunAndReturn added in v1.366.0

type HadolintClient added in v1.366.0

type HadolintClient struct {
	mock.Mock
}

HadolintClient is an autogenerated mock type for the HadolintClient type

func NewHadolintClient added in v1.366.0

func NewHadolintClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HadolintClient

NewHadolintClient creates a new instance of HadolintClient. 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 (*HadolintClient) DownloadFile added in v1.366.0

func (_m *HadolintClient) DownloadFile(url string, filename string, header http.Header, cookies []*http.Cookie) error

DownloadFile provides a mock function with given fields: url, filename, header, cookies

func (*HadolintClient) EXPECT added in v1.366.0

func (*HadolintClient) SetOptions added in v1.366.0

func (_m *HadolintClient) SetOptions(options pkghttp.ClientOptions)

SetOptions provides a mock function with given fields: options

type HadolintClient_DownloadFile_Call added in v1.366.0

type HadolintClient_DownloadFile_Call struct {
	*mock.Call
}

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

func (*HadolintClient_DownloadFile_Call) Return added in v1.366.0

func (*HadolintClient_DownloadFile_Call) Run added in v1.366.0

func (_c *HadolintClient_DownloadFile_Call) Run(run func(url string, filename string, header http.Header, cookies []*http.Cookie)) *HadolintClient_DownloadFile_Call

func (*HadolintClient_DownloadFile_Call) RunAndReturn added in v1.366.0

type HadolintClient_Expecter added in v1.366.0

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

func (*HadolintClient_Expecter) DownloadFile added in v1.366.0

func (_e *HadolintClient_Expecter) DownloadFile(url interface{}, filename interface{}, header interface{}, cookies interface{}) *HadolintClient_DownloadFile_Call

DownloadFile is a helper method to define mock.On call

  • url string
  • filename string
  • header http.Header
  • cookies []*http.Cookie

func (*HadolintClient_Expecter) SetOptions added in v1.366.0

func (_e *HadolintClient_Expecter) SetOptions(options interface{}) *HadolintClient_SetOptions_Call

SetOptions is a helper method to define mock.On call

  • options pkghttp.ClientOptions

type HadolintClient_SetOptions_Call added in v1.366.0

type HadolintClient_SetOptions_Call struct {
	*mock.Call
}

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

func (*HadolintClient_SetOptions_Call) Return added in v1.366.0

func (*HadolintClient_SetOptions_Call) Run added in v1.366.0

func (*HadolintClient_SetOptions_Call) RunAndReturn added in v1.366.0

type HadolintPiperFileUtils added in v1.366.0

type HadolintPiperFileUtils struct {
	mock.Mock
}

HadolintPiperFileUtils is an autogenerated mock type for the HadolintPiperFileUtils type

func NewHadolintPiperFileUtils added in v1.366.0

func NewHadolintPiperFileUtils(t interface {
	mock.TestingT
	Cleanup(func())
}) *HadolintPiperFileUtils

NewHadolintPiperFileUtils creates a new instance of HadolintPiperFileUtils. 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 (*HadolintPiperFileUtils) EXPECT added in v1.366.0

func (*HadolintPiperFileUtils) FileExists added in v1.366.0

func (_m *HadolintPiperFileUtils) FileExists(filename string) (bool, error)

FileExists provides a mock function with given fields: filename

func (*HadolintPiperFileUtils) FileWrite added in v1.366.0

func (_m *HadolintPiperFileUtils) FileWrite(filename string, data []byte, perm fs.FileMode) error

FileWrite provides a mock function with given fields: filename, data, perm

func (*HadolintPiperFileUtils) WriteFile added in v1.366.0

func (_m *HadolintPiperFileUtils) WriteFile(filename string, data []byte, perm fs.FileMode) error

WriteFile provides a mock function with given fields: filename, data, perm

type HadolintPiperFileUtils_Expecter added in v1.366.0

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

func (*HadolintPiperFileUtils_Expecter) FileExists added in v1.366.0

func (_e *HadolintPiperFileUtils_Expecter) FileExists(filename interface{}) *HadolintPiperFileUtils_FileExists_Call

FileExists is a helper method to define mock.On call

  • filename string

func (*HadolintPiperFileUtils_Expecter) FileWrite added in v1.366.0

func (_e *HadolintPiperFileUtils_Expecter) FileWrite(filename interface{}, data interface{}, perm interface{}) *HadolintPiperFileUtils_FileWrite_Call

FileWrite is a helper method to define mock.On call

  • filename string
  • data []byte
  • perm fs.FileMode

func (*HadolintPiperFileUtils_Expecter) WriteFile added in v1.366.0

func (_e *HadolintPiperFileUtils_Expecter) WriteFile(filename interface{}, data interface{}, perm interface{}) *HadolintPiperFileUtils_WriteFile_Call

WriteFile is a helper method to define mock.On call

  • filename string
  • data []byte
  • perm fs.FileMode

type HadolintPiperFileUtils_FileExists_Call added in v1.366.0

type HadolintPiperFileUtils_FileExists_Call struct {
	*mock.Call
}

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

func (*HadolintPiperFileUtils_FileExists_Call) Return added in v1.366.0

func (*HadolintPiperFileUtils_FileExists_Call) Run added in v1.366.0

func (*HadolintPiperFileUtils_FileExists_Call) RunAndReturn added in v1.366.0

type HadolintPiperFileUtils_FileWrite_Call added in v1.366.0

type HadolintPiperFileUtils_FileWrite_Call struct {
	*mock.Call
}

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

func (*HadolintPiperFileUtils_FileWrite_Call) Return added in v1.366.0

func (*HadolintPiperFileUtils_FileWrite_Call) Run added in v1.366.0

func (*HadolintPiperFileUtils_FileWrite_Call) RunAndReturn added in v1.366.0

type HadolintPiperFileUtils_WriteFile_Call added in v1.366.0

type HadolintPiperFileUtils_WriteFile_Call struct {
	*mock.Call
}

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

func (*HadolintPiperFileUtils_WriteFile_Call) Return added in v1.366.0

func (*HadolintPiperFileUtils_WriteFile_Call) Run added in v1.366.0

func (*HadolintPiperFileUtils_WriteFile_Call) RunAndReturn added in v1.366.0

Jump to

Keyboard shortcuts

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