mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChecksumProvider

type MockChecksumProvider struct {
	mock.Mock
}

MockChecksumProvider is an autogenerated mock type for the ChecksumProvider type

func NewMockChecksumProvider

func NewMockChecksumProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockChecksumProvider

NewMockChecksumProvider creates a new instance of MockChecksumProvider. 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 (*MockChecksumProvider) DownloadChecksumManifest

func (_mock *MockChecksumProvider) DownloadChecksumManifest(ctx context.Context, rel forge.Release, maxBytes int64) ([]byte, error)

DownloadChecksumManifest provides a mock function for the type MockChecksumProvider

func (*MockChecksumProvider) EXPECT

type MockChecksumProvider_DownloadChecksumManifest_Call

type MockChecksumProvider_DownloadChecksumManifest_Call struct {
	*mock.Call
}

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

func (*MockChecksumProvider_DownloadChecksumManifest_Call) Return

func (*MockChecksumProvider_DownloadChecksumManifest_Call) Run

func (*MockChecksumProvider_DownloadChecksumManifest_Call) RunAndReturn

type MockChecksumProvider_Expecter

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

func (*MockChecksumProvider_Expecter) DownloadChecksumManifest

func (_e *MockChecksumProvider_Expecter) DownloadChecksumManifest(ctx interface{}, rel interface{}, maxBytes interface{}) *MockChecksumProvider_DownloadChecksumManifest_Call

DownloadChecksumManifest is a helper method to define mock.On call

  • ctx context.Context
  • rel forge.Release
  • maxBytes int64

type MockConfig

type MockConfig struct {
	mock.Mock
}

MockConfig is an autogenerated mock type for the Config type

func NewMockConfig

func NewMockConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfig

NewMockConfig creates a new instance of MockConfig. 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 (*MockConfig) EXPECT

func (_m *MockConfig) EXPECT() *MockConfig_Expecter

func (*MockConfig) GetString

func (_mock *MockConfig) GetString(key string) string

GetString provides a mock function for the type MockConfig

func (*MockConfig) Sub

func (_mock *MockConfig) Sub(key string) forge.Config

Sub provides a mock function for the type MockConfig

type MockConfig_Expecter

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

func (*MockConfig_Expecter) GetString

func (_e *MockConfig_Expecter) GetString(key interface{}) *MockConfig_GetString_Call

GetString is a helper method to define mock.On call

  • key string

func (*MockConfig_Expecter) Sub

func (_e *MockConfig_Expecter) Sub(key interface{}) *MockConfig_Sub_Call

Sub is a helper method to define mock.On call

  • key string

type MockConfig_GetString_Call

type MockConfig_GetString_Call struct {
	*mock.Call
}

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

func (*MockConfig_GetString_Call) Return

func (*MockConfig_GetString_Call) Run

func (*MockConfig_GetString_Call) RunAndReturn

func (_c *MockConfig_GetString_Call) RunAndReturn(run func(key string) string) *MockConfig_GetString_Call

type MockConfig_Sub_Call

type MockConfig_Sub_Call struct {
	*mock.Call
}

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

func (*MockConfig_Sub_Call) Return

func (*MockConfig_Sub_Call) Run

func (_c *MockConfig_Sub_Call) Run(run func(key string)) *MockConfig_Sub_Call

func (*MockConfig_Sub_Call) RunAndReturn

func (_c *MockConfig_Sub_Call) RunAndReturn(run func(key string) forge.Config) *MockConfig_Sub_Call

type MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider is an autogenerated mock type for the Provider type

func NewMockProvider

func NewMockProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProvider

NewMockProvider creates a new instance of MockProvider. 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 (*MockProvider) DownloadReleaseAsset

func (_mock *MockProvider) DownloadReleaseAsset(ctx context.Context, owner string, repo string, asset forge.ReleaseAsset) (io.ReadCloser, string, error)

DownloadReleaseAsset provides a mock function for the type MockProvider

func (*MockProvider) EXPECT

func (_m *MockProvider) EXPECT() *MockProvider_Expecter

func (*MockProvider) GetLatestRelease

func (_mock *MockProvider) GetLatestRelease(ctx context.Context, owner string, repo string) (forge.Release, error)

GetLatestRelease provides a mock function for the type MockProvider

func (*MockProvider) GetReleaseByTag

func (_mock *MockProvider) GetReleaseByTag(ctx context.Context, owner string, repo string, tag string) (forge.Release, error)

GetReleaseByTag provides a mock function for the type MockProvider

func (*MockProvider) ListReleases

func (_mock *MockProvider) ListReleases(ctx context.Context, owner string, repo string, limit int) ([]forge.Release, error)

ListReleases provides a mock function for the type MockProvider

type MockProvider_DownloadReleaseAsset_Call

type MockProvider_DownloadReleaseAsset_Call struct {
	*mock.Call
}

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

func (*MockProvider_DownloadReleaseAsset_Call) Return

func (*MockProvider_DownloadReleaseAsset_Call) Run

func (*MockProvider_DownloadReleaseAsset_Call) RunAndReturn

type MockProvider_Expecter

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

func (*MockProvider_Expecter) DownloadReleaseAsset

func (_e *MockProvider_Expecter) DownloadReleaseAsset(ctx interface{}, owner interface{}, repo interface{}, asset interface{}) *MockProvider_DownloadReleaseAsset_Call

DownloadReleaseAsset is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • asset forge.ReleaseAsset

func (*MockProvider_Expecter) GetLatestRelease

func (_e *MockProvider_Expecter) GetLatestRelease(ctx interface{}, owner interface{}, repo interface{}) *MockProvider_GetLatestRelease_Call

GetLatestRelease is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string

func (*MockProvider_Expecter) GetReleaseByTag

func (_e *MockProvider_Expecter) GetReleaseByTag(ctx interface{}, owner interface{}, repo interface{}, tag interface{}) *MockProvider_GetReleaseByTag_Call

GetReleaseByTag is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • tag string

func (*MockProvider_Expecter) ListReleases

func (_e *MockProvider_Expecter) ListReleases(ctx interface{}, owner interface{}, repo interface{}, limit interface{}) *MockProvider_ListReleases_Call

ListReleases is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • limit int

type MockProvider_GetLatestRelease_Call

type MockProvider_GetLatestRelease_Call struct {
	*mock.Call
}

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

func (*MockProvider_GetLatestRelease_Call) Return

func (*MockProvider_GetLatestRelease_Call) Run

func (*MockProvider_GetLatestRelease_Call) RunAndReturn

type MockProvider_GetReleaseByTag_Call

type MockProvider_GetReleaseByTag_Call struct {
	*mock.Call
}

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

func (*MockProvider_GetReleaseByTag_Call) Return

func (*MockProvider_GetReleaseByTag_Call) Run

func (*MockProvider_GetReleaseByTag_Call) RunAndReturn

type MockProvider_ListReleases_Call

type MockProvider_ListReleases_Call struct {
	*mock.Call
}

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

func (*MockProvider_ListReleases_Call) Return

func (*MockProvider_ListReleases_Call) Run

func (*MockProvider_ListReleases_Call) RunAndReturn

func (_c *MockProvider_ListReleases_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, limit int) ([]forge.Release, error)) *MockProvider_ListReleases_Call

type MockRelease

type MockRelease struct {
	mock.Mock
}

MockRelease is an autogenerated mock type for the Release type

func NewMockRelease

func NewMockRelease(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRelease

NewMockRelease creates a new instance of MockRelease. 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 (*MockRelease) EXPECT

func (_m *MockRelease) EXPECT() *MockRelease_Expecter

func (*MockRelease) GetAssets

func (_mock *MockRelease) GetAssets() []forge.ReleaseAsset

GetAssets provides a mock function for the type MockRelease

func (*MockRelease) GetBody

func (_mock *MockRelease) GetBody() string

GetBody provides a mock function for the type MockRelease

func (*MockRelease) GetDraft

func (_mock *MockRelease) GetDraft() bool

GetDraft provides a mock function for the type MockRelease

func (*MockRelease) GetName

func (_mock *MockRelease) GetName() string

GetName provides a mock function for the type MockRelease

func (*MockRelease) GetTagName

func (_mock *MockRelease) GetTagName() string

GetTagName provides a mock function for the type MockRelease

type MockReleaseAsset

type MockReleaseAsset struct {
	mock.Mock
}

MockReleaseAsset is an autogenerated mock type for the ReleaseAsset type

func NewMockReleaseAsset

func NewMockReleaseAsset(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReleaseAsset

NewMockReleaseAsset creates a new instance of MockReleaseAsset. 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 (*MockReleaseAsset) EXPECT

func (*MockReleaseAsset) GetBrowserDownloadURL

func (_mock *MockReleaseAsset) GetBrowserDownloadURL() string

GetBrowserDownloadURL provides a mock function for the type MockReleaseAsset

func (*MockReleaseAsset) GetID

func (_mock *MockReleaseAsset) GetID() int64

GetID provides a mock function for the type MockReleaseAsset

func (*MockReleaseAsset) GetName

func (_mock *MockReleaseAsset) GetName() string

GetName provides a mock function for the type MockReleaseAsset

type MockReleaseAsset_Expecter

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

func (*MockReleaseAsset_Expecter) GetBrowserDownloadURL

GetBrowserDownloadURL is a helper method to define mock.On call

func (*MockReleaseAsset_Expecter) GetID

GetID is a helper method to define mock.On call

func (*MockReleaseAsset_Expecter) GetName

GetName is a helper method to define mock.On call

type MockReleaseAsset_GetBrowserDownloadURL_Call

type MockReleaseAsset_GetBrowserDownloadURL_Call struct {
	*mock.Call
}

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

func (*MockReleaseAsset_GetBrowserDownloadURL_Call) Return

func (*MockReleaseAsset_GetBrowserDownloadURL_Call) Run

func (*MockReleaseAsset_GetBrowserDownloadURL_Call) RunAndReturn

type MockReleaseAsset_GetID_Call

type MockReleaseAsset_GetID_Call struct {
	*mock.Call
}

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

func (*MockReleaseAsset_GetID_Call) Return

func (*MockReleaseAsset_GetID_Call) Run

func (*MockReleaseAsset_GetID_Call) RunAndReturn

func (_c *MockReleaseAsset_GetID_Call) RunAndReturn(run func() int64) *MockReleaseAsset_GetID_Call

type MockReleaseAsset_GetName_Call

type MockReleaseAsset_GetName_Call struct {
	*mock.Call
}

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

func (*MockReleaseAsset_GetName_Call) Return

func (*MockReleaseAsset_GetName_Call) Run

func (*MockReleaseAsset_GetName_Call) RunAndReturn

type MockRelease_Expecter

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

func (*MockRelease_Expecter) GetAssets

GetAssets is a helper method to define mock.On call

func (*MockRelease_Expecter) GetBody

GetBody is a helper method to define mock.On call

func (*MockRelease_Expecter) GetDraft

GetDraft is a helper method to define mock.On call

func (*MockRelease_Expecter) GetName

GetName is a helper method to define mock.On call

func (*MockRelease_Expecter) GetTagName

GetTagName is a helper method to define mock.On call

type MockRelease_GetAssets_Call

type MockRelease_GetAssets_Call struct {
	*mock.Call
}

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

func (*MockRelease_GetAssets_Call) Return

func (*MockRelease_GetAssets_Call) Run

func (*MockRelease_GetAssets_Call) RunAndReturn

type MockRelease_GetBody_Call

type MockRelease_GetBody_Call struct {
	*mock.Call
}

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

func (*MockRelease_GetBody_Call) Return

func (*MockRelease_GetBody_Call) Run

func (*MockRelease_GetBody_Call) RunAndReturn

func (_c *MockRelease_GetBody_Call) RunAndReturn(run func() string) *MockRelease_GetBody_Call

type MockRelease_GetDraft_Call

type MockRelease_GetDraft_Call struct {
	*mock.Call
}

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

func (*MockRelease_GetDraft_Call) Return

func (*MockRelease_GetDraft_Call) Run

func (*MockRelease_GetDraft_Call) RunAndReturn

func (_c *MockRelease_GetDraft_Call) RunAndReturn(run func() bool) *MockRelease_GetDraft_Call

type MockRelease_GetName_Call

type MockRelease_GetName_Call struct {
	*mock.Call
}

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

func (*MockRelease_GetName_Call) Return

func (*MockRelease_GetName_Call) Run

func (*MockRelease_GetName_Call) RunAndReturn

func (_c *MockRelease_GetName_Call) RunAndReturn(run func() string) *MockRelease_GetName_Call

type MockRelease_GetTagName_Call

type MockRelease_GetTagName_Call struct {
	*mock.Call
}

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

func (*MockRelease_GetTagName_Call) Return

func (*MockRelease_GetTagName_Call) Run

func (*MockRelease_GetTagName_Call) RunAndReturn

func (_c *MockRelease_GetTagName_Call) RunAndReturn(run func() string) *MockRelease_GetTagName_Call

type MockSignatureProvider

type MockSignatureProvider struct {
	mock.Mock
}

MockSignatureProvider is an autogenerated mock type for the SignatureProvider type

func NewMockSignatureProvider

func NewMockSignatureProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSignatureProvider

NewMockSignatureProvider creates a new instance of MockSignatureProvider. 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 (*MockSignatureProvider) DownloadSignature

func (_mock *MockSignatureProvider) DownloadSignature(ctx context.Context, rel forge.Release, maxBytes int64) ([]byte, error)

DownloadSignature provides a mock function for the type MockSignatureProvider

func (*MockSignatureProvider) EXPECT

type MockSignatureProvider_DownloadSignature_Call

type MockSignatureProvider_DownloadSignature_Call struct {
	*mock.Call
}

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

func (*MockSignatureProvider_DownloadSignature_Call) Return

func (*MockSignatureProvider_DownloadSignature_Call) Run

func (*MockSignatureProvider_DownloadSignature_Call) RunAndReturn

type MockSignatureProvider_Expecter

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

func (*MockSignatureProvider_Expecter) DownloadSignature

func (_e *MockSignatureProvider_Expecter) DownloadSignature(ctx interface{}, rel interface{}, maxBytes interface{}) *MockSignatureProvider_DownloadSignature_Call

DownloadSignature is a helper method to define mock.On call

  • ctx context.Context
  • rel forge.Release
  • maxBytes int64

type MockTokenConfig

type MockTokenConfig struct {
	mock.Mock
}

MockTokenConfig is an autogenerated mock type for the TokenConfig type

func NewMockTokenConfig

func NewMockTokenConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTokenConfig

NewMockTokenConfig creates a new instance of MockTokenConfig. 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 (*MockTokenConfig) EXPECT

func (*MockTokenConfig) GetString

func (_mock *MockTokenConfig) GetString(key string) string

GetString provides a mock function for the type MockTokenConfig

type MockTokenConfig_Expecter

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

func (*MockTokenConfig_Expecter) GetString

func (_e *MockTokenConfig_Expecter) GetString(key interface{}) *MockTokenConfig_GetString_Call

GetString is a helper method to define mock.On call

  • key string

type MockTokenConfig_GetString_Call

type MockTokenConfig_GetString_Call struct {
	*mock.Call
}

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

func (*MockTokenConfig_GetString_Call) Return

func (*MockTokenConfig_GetString_Call) Run

func (*MockTokenConfig_GetString_Call) RunAndReturn

Jump to

Keyboard shortcuts

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