propose

package
v0.21.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWriter

type MockWriter struct {
	mock.Mock
}

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

func (*MockWriter) Find

func (_mock *MockWriter) Find(ctx context.Context, owner string, repo string, sourceBranch string) (forge.PullRequest, error)

Find provides a mock function for the type MockWriter

func (*MockWriter) Update

func (_mock *MockWriter) Update(ctx context.Context, owner string, repo string, number int, title string, body string) error

Update provides a mock function for the type MockWriter

type MockWriter_Create_Call

type MockWriter_Create_Call struct {
	*mock.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 (*MockWriter_Create_Call) Run

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

type MockWriter_Find_Call struct {
	*mock.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

type MockWriter_Update_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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