mocks

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 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 GHRepoService

type GHRepoService struct {
	mock.Mock
}

GHRepoService is an autogenerated mock type for the GHRepoService type

func NewGHRepoService added in v0.9.5

func NewGHRepoService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GHRepoService

NewGHRepoService creates a new instance of GHRepoService. 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 (*GHRepoService) EXPECT added in v0.9.5

func (_m *GHRepoService) EXPECT() *GHRepoService_Expecter

func (*GHRepoService) GetCommitSHA1

func (_m *GHRepoService) GetCommitSHA1(ctx context.Context, owner string, repo string, ref string, lastSHA string) (string, *github.Response, error)

GetCommitSHA1 provides a mock function with given fields: ctx, owner, repo, ref, lastSHA

func (*GHRepoService) GetLatestRelease

func (_m *GHRepoService) 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 (*GHRepoService) GetReleaseByTag

func (_m *GHRepoService) GetReleaseByTag(ctx context.Context, owner string, repo string, tag string) (*github.RepositoryRelease, *github.Response, error)

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

func (*GHRepoService) ListReleases

func (_m *GHRepoService) ListReleases(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)

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

type GHRepoService_Expecter added in v0.9.5

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

func (*GHRepoService_Expecter) GetCommitSHA1 added in v0.9.5

func (_e *GHRepoService_Expecter) GetCommitSHA1(ctx interface{}, owner interface{}, repo interface{}, ref interface{}, lastSHA interface{}) *GHRepoService_GetCommitSHA1_Call

GetCommitSHA1 is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • ref string
  • lastSHA string

func (*GHRepoService_Expecter) GetLatestRelease added in v0.9.5

func (_e *GHRepoService_Expecter) GetLatestRelease(ctx interface{}, owner interface{}, repo interface{}) *GHRepoService_GetLatestRelease_Call

GetLatestRelease is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string

func (*GHRepoService_Expecter) GetReleaseByTag added in v0.9.5

func (_e *GHRepoService_Expecter) GetReleaseByTag(ctx interface{}, owner interface{}, repo interface{}, tag interface{}) *GHRepoService_GetReleaseByTag_Call

GetReleaseByTag is a helper method to define mock.On call

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

func (*GHRepoService_Expecter) ListReleases added in v0.9.5

func (_e *GHRepoService_Expecter) ListReleases(ctx interface{}, owner interface{}, repo interface{}, opts interface{}) *GHRepoService_ListReleases_Call

ListReleases is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • opts *github.ListOptions

type GHRepoService_GetCommitSHA1_Call added in v0.9.5

type GHRepoService_GetCommitSHA1_Call struct {
	*mock.Call
}

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

func (*GHRepoService_GetCommitSHA1_Call) Return added in v0.9.5

func (*GHRepoService_GetCommitSHA1_Call) Run added in v0.9.5

func (*GHRepoService_GetCommitSHA1_Call) RunAndReturn added in v0.9.5

type GHRepoService_GetLatestRelease_Call added in v0.9.5

type GHRepoService_GetLatestRelease_Call struct {
	*mock.Call
}

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

func (*GHRepoService_GetLatestRelease_Call) Return added in v0.9.5

func (*GHRepoService_GetLatestRelease_Call) Run added in v0.9.5

func (*GHRepoService_GetLatestRelease_Call) RunAndReturn added in v0.9.5

type GHRepoService_GetReleaseByTag_Call added in v0.9.5

type GHRepoService_GetReleaseByTag_Call struct {
	*mock.Call
}

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

func (*GHRepoService_GetReleaseByTag_Call) Return added in v0.9.5

func (*GHRepoService_GetReleaseByTag_Call) Run added in v0.9.5

func (*GHRepoService_GetReleaseByTag_Call) RunAndReturn added in v0.9.5

type GHRepoService_ListReleases_Call added in v0.9.5

type GHRepoService_ListReleases_Call struct {
	*mock.Call
}

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

func (*GHRepoService_ListReleases_Call) Return added in v0.9.5

func (*GHRepoService_ListReleases_Call) Run added in v0.9.5

func (*GHRepoService_ListReleases_Call) RunAndReturn added in v0.9.5

Jump to

Keyboard shortcuts

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