mocks

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockForge added in v0.26.0

type MockForge struct {
	mock.Mock
}

MockForge is an autogenerated mock type for the Forge type

func NewMockForge added in v0.26.0

func NewMockForge(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockForge

NewMockForge creates a new instance of MockForge. 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 (*MockForge) EXPECT added in v0.26.0

func (_m *MockForge) EXPECT() *MockForge_Expecter

func (*MockForge) GetPullRequest added in v0.26.0

func (_mock *MockForge) GetPullRequest(ctx context.Context, owner string, repo string, number int) (*forge.PullRequest, error)

GetPullRequest provides a mock function for the type MockForge

func (*MockForge) ListChangedFiles added in v0.26.0

func (_mock *MockForge) ListChangedFiles(ctx context.Context, owner string, repo string, number int) ([]forge.ChangedFile, error)

ListChangedFiles provides a mock function for the type MockForge

func (*MockForge) ListOpenPullRequests added in v0.26.0

func (_mock *MockForge) ListOpenPullRequests(ctx context.Context, owner string, repo string) ([]forge.PullRequest, error)

ListOpenPullRequests provides a mock function for the type MockForge

func (*MockForge) ParseWebhook added in v0.26.0

func (_mock *MockForge) ParseWebhook(r *http.Request) (forge.Event, error)

ParseWebhook provides a mock function for the type MockForge

func (*MockForge) UpsertComment added in v0.26.0

func (_mock *MockForge) UpsertComment(ctx context.Context, owner string, repo string, number int, body string) error

UpsertComment provides a mock function for the type MockForge

type MockForge_Expecter added in v0.26.0

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

func (*MockForge_Expecter) GetPullRequest added in v0.26.0

func (_e *MockForge_Expecter) GetPullRequest(ctx any, owner any, repo any, number any) *MockForge_GetPullRequest_Call

GetPullRequest is a helper method to define mock.On call

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

func (*MockForge_Expecter) ListChangedFiles added in v0.26.0

func (_e *MockForge_Expecter) ListChangedFiles(ctx any, owner any, repo any, number any) *MockForge_ListChangedFiles_Call

ListChangedFiles is a helper method to define mock.On call

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

func (*MockForge_Expecter) ListOpenPullRequests added in v0.26.0

func (_e *MockForge_Expecter) ListOpenPullRequests(ctx any, owner any, repo any) *MockForge_ListOpenPullRequests_Call

ListOpenPullRequests is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string

func (*MockForge_Expecter) ParseWebhook added in v0.26.0

func (_e *MockForge_Expecter) ParseWebhook(r any) *MockForge_ParseWebhook_Call

ParseWebhook is a helper method to define mock.On call

  • r *http.Request

func (*MockForge_Expecter) UpsertComment added in v0.26.0

func (_e *MockForge_Expecter) UpsertComment(ctx any, owner any, repo any, number any, body any) *MockForge_UpsertComment_Call

UpsertComment is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • number int
  • body string

type MockForge_GetPullRequest_Call added in v0.26.0

type MockForge_GetPullRequest_Call struct {
	*mock.Call
}

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

func (*MockForge_GetPullRequest_Call) Return added in v0.26.0

func (*MockForge_GetPullRequest_Call) Run added in v0.26.0

func (_c *MockForge_GetPullRequest_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockForge_GetPullRequest_Call

func (*MockForge_GetPullRequest_Call) RunAndReturn added in v0.26.0

func (_c *MockForge_GetPullRequest_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int) (*forge.PullRequest, error)) *MockForge_GetPullRequest_Call

type MockForge_ListChangedFiles_Call added in v0.26.0

type MockForge_ListChangedFiles_Call struct {
	*mock.Call
}

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

func (*MockForge_ListChangedFiles_Call) Return added in v0.26.0

func (*MockForge_ListChangedFiles_Call) Run added in v0.26.0

func (*MockForge_ListChangedFiles_Call) RunAndReturn added in v0.26.0

func (_c *MockForge_ListChangedFiles_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int) ([]forge.ChangedFile, error)) *MockForge_ListChangedFiles_Call

type MockForge_ListOpenPullRequests_Call added in v0.26.0

type MockForge_ListOpenPullRequests_Call struct {
	*mock.Call
}

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

func (*MockForge_ListOpenPullRequests_Call) Return added in v0.26.0

func (*MockForge_ListOpenPullRequests_Call) Run added in v0.26.0

func (*MockForge_ListOpenPullRequests_Call) RunAndReturn added in v0.26.0

type MockForge_ParseWebhook_Call added in v0.26.0

type MockForge_ParseWebhook_Call struct {
	*mock.Call
}

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

func (*MockForge_ParseWebhook_Call) Return added in v0.26.0

func (*MockForge_ParseWebhook_Call) Run added in v0.26.0

func (*MockForge_ParseWebhook_Call) RunAndReturn added in v0.26.0

type MockForge_UpsertComment_Call added in v0.26.0

type MockForge_UpsertComment_Call struct {
	*mock.Call
}

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

func (*MockForge_UpsertComment_Call) Return added in v0.26.0

func (*MockForge_UpsertComment_Call) Run added in v0.26.0

func (_c *MockForge_UpsertComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, body string)) *MockForge_UpsertComment_Call

func (*MockForge_UpsertComment_Call) RunAndReturn added in v0.26.0

func (_c *MockForge_UpsertComment_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, body string) error) *MockForge_UpsertComment_Call

Jump to

Keyboard shortcuts

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