Documentation
¶
Index ¶
- type MockWriter
- func (_mock *MockWriter) Create(ctx context.Context, owner string, repo string, draft forge.PullRequestDraft) (forge.PullRequest, error)
- func (_m *MockWriter) EXPECT() *MockWriter_Expecter
- func (_mock *MockWriter) Find(ctx context.Context, owner string, repo string, sourceBranch string) (forge.PullRequest, error)
- func (_mock *MockWriter) Update(ctx context.Context, owner string, repo string, number int, title string, ...) error
- type MockWriter_Create_Call
- type MockWriter_Expecter
- func (_e *MockWriter_Expecter) Create(ctx any, owner any, repo any, draft any) *MockWriter_Create_Call
- func (_e *MockWriter_Expecter) Find(ctx any, owner any, repo any, sourceBranch any) *MockWriter_Find_Call
- func (_e *MockWriter_Expecter) Update(ctx any, owner any, repo any, number any, title any, body any) *MockWriter_Update_Call
- type MockWriter_Find_Call
- func (_c *MockWriter_Find_Call) Return(pullRequest forge.PullRequest, err error) *MockWriter_Find_Call
- func (_c *MockWriter_Find_Call) Run(run func(ctx context.Context, owner string, repo string, sourceBranch string)) *MockWriter_Find_Call
- func (_c *MockWriter_Find_Call) RunAndReturn(...) *MockWriter_Find_Call
- type MockWriter_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWriter ¶
MockWriter is an autogenerated mock type for the Writer type
func NewMockWriter ¶
func NewMockWriter(t interface {
mock.TestingT
Cleanup(func())
}) *MockWriter
NewMockWriter creates a new instance of MockWriter. 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 (*MockWriter) Create ¶
func (_mock *MockWriter) Create(ctx context.Context, owner string, repo string, draft forge.PullRequestDraft) (forge.PullRequest, error)
Create provides a mock function for the type MockWriter
func (*MockWriter) EXPECT ¶
func (_m *MockWriter) EXPECT() *MockWriter_Expecter
type MockWriter_Create_Call ¶
MockWriter_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockWriter_Create_Call) Return ¶
func (_c *MockWriter_Create_Call) Return(pullRequest forge.PullRequest, err error) *MockWriter_Create_Call
func (*MockWriter_Create_Call) Run ¶
func (_c *MockWriter_Create_Call) Run(run func(ctx context.Context, owner string, repo string, draft forge.PullRequestDraft)) *MockWriter_Create_Call
func (*MockWriter_Create_Call) RunAndReturn ¶
func (_c *MockWriter_Create_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, draft forge.PullRequestDraft) (forge.PullRequest, error)) *MockWriter_Create_Call
type MockWriter_Expecter ¶
type MockWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWriter_Expecter) Create ¶
func (_e *MockWriter_Expecter) Create(ctx any, owner any, repo any, draft any) *MockWriter_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- draft forge.PullRequestDraft
func (*MockWriter_Expecter) Find ¶
func (_e *MockWriter_Expecter) Find(ctx any, owner any, repo any, sourceBranch any) *MockWriter_Find_Call
Find is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- sourceBranch string
func (*MockWriter_Expecter) Update ¶
func (_e *MockWriter_Expecter) Update(ctx any, owner any, repo any, number any, title any, body any) *MockWriter_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- title string
- body string
type MockWriter_Find_Call ¶
MockWriter_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockWriter_Find_Call) Return ¶
func (_c *MockWriter_Find_Call) Return(pullRequest forge.PullRequest, err error) *MockWriter_Find_Call
func (*MockWriter_Find_Call) Run ¶
func (_c *MockWriter_Find_Call) Run(run func(ctx context.Context, owner string, repo string, sourceBranch string)) *MockWriter_Find_Call
func (*MockWriter_Find_Call) RunAndReturn ¶
func (_c *MockWriter_Find_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, sourceBranch string) (forge.PullRequest, error)) *MockWriter_Find_Call
type MockWriter_Update_Call ¶
MockWriter_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockWriter_Update_Call) Return ¶
func (_c *MockWriter_Update_Call) Return(err error) *MockWriter_Update_Call
func (*MockWriter_Update_Call) Run ¶
func (_c *MockWriter_Update_Call) Run(run func(ctx context.Context, owner string, repo string, number int, title string, body string)) *MockWriter_Update_Call
func (*MockWriter_Update_Call) RunAndReturn ¶
func (_c *MockWriter_Update_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, title string, body string) error) *MockWriter_Update_Call