vcs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGitHubClient

type MockGitHubClient struct {
	mock.Mock
}

MockGitHubClient is an autogenerated mock type for the GitHubClient type

func NewMockGitHubClient

func NewMockGitHubClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGitHubClient

NewMockGitHubClient creates a new instance of MockGitHubClient. 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 (*MockGitHubClient) AddLabelsToPullRequest

func (_mock *MockGitHubClient) AddLabelsToPullRequest(ctx context.Context, owner string, repo string, number int, labels []string) error

AddLabelsToPullRequest provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) CreatePullRequest

func (_mock *MockGitHubClient) CreatePullRequest(ctx context.Context, owner string, repo string, pull *github.NewPullRequest) (*github.PullRequest, error)

CreatePullRequest provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) CreateRepo

func (_mock *MockGitHubClient) CreateRepo(ctx context.Context, owner string, slug string) (*github.Repository, error)

CreateRepo provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) DownloadAsset

func (_mock *MockGitHubClient) DownloadAsset(ctx context.Context, owner string, repo string, assetID int64) (io.ReadCloser, error)

DownloadAsset provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) DownloadAssetTo

func (_mock *MockGitHubClient) DownloadAssetTo(ctx context.Context, fs afero.Fs, owner string, repo string, assetID int64, filePath string) error

DownloadAssetTo provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) EXPECT

func (*MockGitHubClient) GetClient

func (_mock *MockGitHubClient) GetClient() *github.Client

GetClient provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) GetFileContents

func (_mock *MockGitHubClient) GetFileContents(ctx context.Context, owner string, repo string, path string, ref string) (string, error)

GetFileContents provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) GetPullRequestByBranch

func (_mock *MockGitHubClient) GetPullRequestByBranch(ctx context.Context, owner string, repo string, branch string, state string) (*github.PullRequest, error)

GetPullRequestByBranch provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) GetReleaseAssetID

func (_mock *MockGitHubClient) GetReleaseAssetID(ctx context.Context, owner string, repo string, tag string, assetName string) (int64, error)

GetReleaseAssetID provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) GetReleaseAssets

func (_mock *MockGitHubClient) GetReleaseAssets(ctx context.Context, owner string, repo string, tag string) ([]*github.ReleaseAsset, error)

GetReleaseAssets provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) ListReleases

func (_mock *MockGitHubClient) ListReleases(ctx context.Context, owner string, repo string) ([]string, error)

ListReleases provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) UpdatePullRequest

func (_mock *MockGitHubClient) UpdatePullRequest(ctx context.Context, owner string, repo string, number int, pull *github.PullRequest) (*github.PullRequest, *github.Response, error)

UpdatePullRequest provides a mock function for the type MockGitHubClient

func (*MockGitHubClient) UploadKey

func (_mock *MockGitHubClient) UploadKey(ctx context.Context, name string, key []byte) error

UploadKey provides a mock function for the type MockGitHubClient

type MockGitHubClient_AddLabelsToPullRequest_Call

type MockGitHubClient_AddLabelsToPullRequest_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_AddLabelsToPullRequest_Call) Return

func (*MockGitHubClient_AddLabelsToPullRequest_Call) Run

func (*MockGitHubClient_AddLabelsToPullRequest_Call) RunAndReturn

type MockGitHubClient_CreatePullRequest_Call

type MockGitHubClient_CreatePullRequest_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_CreatePullRequest_Call) Return

func (*MockGitHubClient_CreatePullRequest_Call) Run

func (*MockGitHubClient_CreatePullRequest_Call) RunAndReturn

type MockGitHubClient_CreateRepo_Call

type MockGitHubClient_CreateRepo_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_CreateRepo_Call) Return

func (*MockGitHubClient_CreateRepo_Call) Run

func (*MockGitHubClient_CreateRepo_Call) RunAndReturn

type MockGitHubClient_DownloadAssetTo_Call

type MockGitHubClient_DownloadAssetTo_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_DownloadAssetTo_Call) Return

func (*MockGitHubClient_DownloadAssetTo_Call) Run

func (*MockGitHubClient_DownloadAssetTo_Call) RunAndReturn

func (_c *MockGitHubClient_DownloadAssetTo_Call) RunAndReturn(run func(ctx context.Context, fs afero.Fs, owner string, repo string, assetID int64, filePath string) error) *MockGitHubClient_DownloadAssetTo_Call

type MockGitHubClient_DownloadAsset_Call

type MockGitHubClient_DownloadAsset_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_DownloadAsset_Call) Return

func (*MockGitHubClient_DownloadAsset_Call) Run

func (*MockGitHubClient_DownloadAsset_Call) RunAndReturn

type MockGitHubClient_Expecter

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

func (*MockGitHubClient_Expecter) AddLabelsToPullRequest

func (_e *MockGitHubClient_Expecter) AddLabelsToPullRequest(ctx interface{}, owner interface{}, repo interface{}, number interface{}, labels interface{}) *MockGitHubClient_AddLabelsToPullRequest_Call

AddLabelsToPullRequest is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • number int
  • labels []string

func (*MockGitHubClient_Expecter) CreatePullRequest

func (_e *MockGitHubClient_Expecter) CreatePullRequest(ctx interface{}, owner interface{}, repo interface{}, pull interface{}) *MockGitHubClient_CreatePullRequest_Call

CreatePullRequest is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • pull *github.NewPullRequest

func (*MockGitHubClient_Expecter) CreateRepo

func (_e *MockGitHubClient_Expecter) CreateRepo(ctx interface{}, owner interface{}, slug interface{}) *MockGitHubClient_CreateRepo_Call

CreateRepo is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • slug string

func (*MockGitHubClient_Expecter) DownloadAsset

func (_e *MockGitHubClient_Expecter) DownloadAsset(ctx interface{}, owner interface{}, repo interface{}, assetID interface{}) *MockGitHubClient_DownloadAsset_Call

DownloadAsset is a helper method to define mock.On call

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

func (*MockGitHubClient_Expecter) DownloadAssetTo

func (_e *MockGitHubClient_Expecter) DownloadAssetTo(ctx interface{}, fs interface{}, owner interface{}, repo interface{}, assetID interface{}, filePath interface{}) *MockGitHubClient_DownloadAssetTo_Call

DownloadAssetTo is a helper method to define mock.On call

  • ctx context.Context
  • fs afero.Fs
  • owner string
  • repo string
  • assetID int64
  • filePath string

func (*MockGitHubClient_Expecter) GetClient

GetClient is a helper method to define mock.On call

func (*MockGitHubClient_Expecter) GetFileContents

func (_e *MockGitHubClient_Expecter) GetFileContents(ctx interface{}, owner interface{}, repo interface{}, path interface{}, ref interface{}) *MockGitHubClient_GetFileContents_Call

GetFileContents is a helper method to define mock.On call

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

func (*MockGitHubClient_Expecter) GetPullRequestByBranch

func (_e *MockGitHubClient_Expecter) GetPullRequestByBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}, state interface{}) *MockGitHubClient_GetPullRequestByBranch_Call

GetPullRequestByBranch is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • branch string
  • state string

func (*MockGitHubClient_Expecter) GetReleaseAssetID

func (_e *MockGitHubClient_Expecter) GetReleaseAssetID(ctx interface{}, owner interface{}, repo interface{}, tag interface{}, assetName interface{}) *MockGitHubClient_GetReleaseAssetID_Call

GetReleaseAssetID is a helper method to define mock.On call

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

func (*MockGitHubClient_Expecter) GetReleaseAssets

func (_e *MockGitHubClient_Expecter) GetReleaseAssets(ctx interface{}, owner interface{}, repo interface{}, tag interface{}) *MockGitHubClient_GetReleaseAssets_Call

GetReleaseAssets is a helper method to define mock.On call

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

func (*MockGitHubClient_Expecter) ListReleases

func (_e *MockGitHubClient_Expecter) ListReleases(ctx interface{}, owner interface{}, repo interface{}) *MockGitHubClient_ListReleases_Call

ListReleases is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string

func (*MockGitHubClient_Expecter) UpdatePullRequest

func (_e *MockGitHubClient_Expecter) UpdatePullRequest(ctx interface{}, owner interface{}, repo interface{}, number interface{}, pull interface{}) *MockGitHubClient_UpdatePullRequest_Call

UpdatePullRequest is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • number int
  • pull *github.PullRequest

func (*MockGitHubClient_Expecter) UploadKey

func (_e *MockGitHubClient_Expecter) UploadKey(ctx interface{}, name interface{}, key interface{}) *MockGitHubClient_UploadKey_Call

UploadKey is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • key []byte

type MockGitHubClient_GetClient_Call

type MockGitHubClient_GetClient_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_GetClient_Call) Return

func (*MockGitHubClient_GetClient_Call) Run

func (*MockGitHubClient_GetClient_Call) RunAndReturn

type MockGitHubClient_GetFileContents_Call

type MockGitHubClient_GetFileContents_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_GetFileContents_Call) Return

func (*MockGitHubClient_GetFileContents_Call) Run

func (*MockGitHubClient_GetFileContents_Call) RunAndReturn

type MockGitHubClient_GetPullRequestByBranch_Call

type MockGitHubClient_GetPullRequestByBranch_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_GetPullRequestByBranch_Call) Return

func (*MockGitHubClient_GetPullRequestByBranch_Call) Run

func (*MockGitHubClient_GetPullRequestByBranch_Call) RunAndReturn

type MockGitHubClient_GetReleaseAssetID_Call

type MockGitHubClient_GetReleaseAssetID_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_GetReleaseAssetID_Call) Return

func (*MockGitHubClient_GetReleaseAssetID_Call) Run

func (*MockGitHubClient_GetReleaseAssetID_Call) RunAndReturn

type MockGitHubClient_GetReleaseAssets_Call

type MockGitHubClient_GetReleaseAssets_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_GetReleaseAssets_Call) Return

func (*MockGitHubClient_GetReleaseAssets_Call) Run

func (*MockGitHubClient_GetReleaseAssets_Call) RunAndReturn

type MockGitHubClient_ListReleases_Call

type MockGitHubClient_ListReleases_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_ListReleases_Call) Return

func (*MockGitHubClient_ListReleases_Call) Run

func (*MockGitHubClient_ListReleases_Call) RunAndReturn

type MockGitHubClient_UpdatePullRequest_Call

type MockGitHubClient_UpdatePullRequest_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_UpdatePullRequest_Call) Return

func (*MockGitHubClient_UpdatePullRequest_Call) Run

func (*MockGitHubClient_UpdatePullRequest_Call) RunAndReturn

type MockGitHubClient_UploadKey_Call

type MockGitHubClient_UploadKey_Call struct {
	*mock.Call
}

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

func (*MockGitHubClient_UploadKey_Call) Return

func (*MockGitHubClient_UploadKey_Call) Run

func (*MockGitHubClient_UploadKey_Call) RunAndReturn

func (_c *MockGitHubClient_UploadKey_Call) RunAndReturn(run func(ctx context.Context, name string, key []byte) error) *MockGitHubClient_UploadKey_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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