Documentation
¶
Index ¶
- type MockForge
- func (_m *MockForge) EXPECT() *MockForge_Expecter
- func (_mock *MockForge) GetPullRequest(ctx context.Context, owner string, repo string, number int) (*forge.PullRequest, error)
- func (_mock *MockForge) ListChangedFiles(ctx context.Context, owner string, repo string, number int) ([]forge.ChangedFile, error)
- func (_mock *MockForge) ListOpenPullRequests(ctx context.Context, owner string, repo string) ([]forge.PullRequest, error)
- func (_mock *MockForge) ParseWebhook(r *http.Request) (forge.Event, error)
- func (_mock *MockForge) UpsertComment(ctx context.Context, owner string, repo string, number int, body string) error
- type MockForge_Expecter
- func (_e *MockForge_Expecter) GetPullRequest(ctx any, owner any, repo any, number any) *MockForge_GetPullRequest_Call
- func (_e *MockForge_Expecter) ListChangedFiles(ctx any, owner any, repo any, number any) *MockForge_ListChangedFiles_Call
- func (_e *MockForge_Expecter) ListOpenPullRequests(ctx any, owner any, repo any) *MockForge_ListOpenPullRequests_Call
- func (_e *MockForge_Expecter) ParseWebhook(r any) *MockForge_ParseWebhook_Call
- func (_e *MockForge_Expecter) UpsertComment(ctx any, owner any, repo any, number any, body any) *MockForge_UpsertComment_Call
- type MockForge_GetPullRequest_Call
- func (_c *MockForge_GetPullRequest_Call) Return(pullRequest *forge.PullRequest, err error) *MockForge_GetPullRequest_Call
- func (_c *MockForge_GetPullRequest_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockForge_GetPullRequest_Call
- func (_c *MockForge_GetPullRequest_Call) RunAndReturn(...) *MockForge_GetPullRequest_Call
- type MockForge_ListChangedFiles_Call
- func (_c *MockForge_ListChangedFiles_Call) Return(changedFiles []forge.ChangedFile, err error) *MockForge_ListChangedFiles_Call
- func (_c *MockForge_ListChangedFiles_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockForge_ListChangedFiles_Call
- func (_c *MockForge_ListChangedFiles_Call) RunAndReturn(...) *MockForge_ListChangedFiles_Call
- type MockForge_ListOpenPullRequests_Call
- func (_c *MockForge_ListOpenPullRequests_Call) Return(pullRequests []forge.PullRequest, err error) *MockForge_ListOpenPullRequests_Call
- func (_c *MockForge_ListOpenPullRequests_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockForge_ListOpenPullRequests_Call
- func (_c *MockForge_ListOpenPullRequests_Call) RunAndReturn(...) *MockForge_ListOpenPullRequests_Call
- type MockForge_ParseWebhook_Call
- func (_c *MockForge_ParseWebhook_Call) Return(event forge.Event, err error) *MockForge_ParseWebhook_Call
- func (_c *MockForge_ParseWebhook_Call) Run(run func(r *http.Request)) *MockForge_ParseWebhook_Call
- func (_c *MockForge_ParseWebhook_Call) RunAndReturn(run func(r *http.Request) (forge.Event, error)) *MockForge_ParseWebhook_Call
- type MockForge_UpsertComment_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockForge ¶ added in v0.26.0
MockForge is an autogenerated mock type for the Forge type
func NewMockForge ¶ added in v0.26.0
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
ParseWebhook 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
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 (_c *MockForge_GetPullRequest_Call) Return(pullRequest *forge.PullRequest, err error) *MockForge_GetPullRequest_Call
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
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 (_c *MockForge_ListChangedFiles_Call) Return(changedFiles []forge.ChangedFile, err error) *MockForge_ListChangedFiles_Call
func (*MockForge_ListChangedFiles_Call) Run ¶ added in v0.26.0
func (_c *MockForge_ListChangedFiles_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockForge_ListChangedFiles_Call
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
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 (_c *MockForge_ListOpenPullRequests_Call) Return(pullRequests []forge.PullRequest, err error) *MockForge_ListOpenPullRequests_Call
func (*MockForge_ListOpenPullRequests_Call) Run ¶ added in v0.26.0
func (_c *MockForge_ListOpenPullRequests_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockForge_ListOpenPullRequests_Call
func (*MockForge_ListOpenPullRequests_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockForge_ListOpenPullRequests_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) ([]forge.PullRequest, error)) *MockForge_ListOpenPullRequests_Call
type MockForge_ParseWebhook_Call ¶ added in v0.26.0
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 (_c *MockForge_ParseWebhook_Call) Return(event forge.Event, err error) *MockForge_ParseWebhook_Call
func (*MockForge_ParseWebhook_Call) Run ¶ added in v0.26.0
func (_c *MockForge_ParseWebhook_Call) Run(run func(r *http.Request)) *MockForge_ParseWebhook_Call
func (*MockForge_ParseWebhook_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockForge_ParseWebhook_Call) RunAndReturn(run func(r *http.Request) (forge.Event, error)) *MockForge_ParseWebhook_Call
type MockForge_UpsertComment_Call ¶ added in v0.26.0
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 (_c *MockForge_UpsertComment_Call) Return(err error) *MockForge_UpsertComment_Call
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