Documentation
¶
Index ¶
- type MockForge
- func (_mock *MockForge) CanWrite(ctx context.Context, owner string, repo string, login string) (bool, error)
- 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) LabelledBy(ctx context.Context, owner string, repo string, number int, labels []string) (string, string, bool, 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) ParsePRURL(u string) (string, string, int, bool)
- func (_mock *MockForge) ParseRepoURL(u string) (string, string, bool)
- func (_mock *MockForge) UpsertComment(ctx context.Context, owner string, repo string, number int, body string) error
- type MockForge_CanWrite_Call
- type MockForge_Expecter
- func (_e *MockForge_Expecter) CanWrite(ctx any, owner any, repo any, login any) *MockForge_CanWrite_Call
- func (_e *MockForge_Expecter) GetPullRequest(ctx any, owner any, repo any, number any) *MockForge_GetPullRequest_Call
- func (_e *MockForge_Expecter) LabelledBy(ctx any, owner any, repo any, number any, labels any) *MockForge_LabelledBy_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) ParsePRURL(u any) *MockForge_ParsePRURL_Call
- func (_e *MockForge_Expecter) ParseRepoURL(u any) *MockForge_ParseRepoURL_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_LabelledBy_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_ParsePRURL_Call
- func (_c *MockForge_ParsePRURL_Call) Return(owner string, repo string, number int, ok bool) *MockForge_ParsePRURL_Call
- func (_c *MockForge_ParsePRURL_Call) Run(run func(u string)) *MockForge_ParsePRURL_Call
- func (_c *MockForge_ParsePRURL_Call) RunAndReturn(run func(u string) (string, string, int, bool)) *MockForge_ParsePRURL_Call
- type MockForge_ParseRepoURL_Call
- func (_c *MockForge_ParseRepoURL_Call) Return(owner string, repo string, ok bool) *MockForge_ParseRepoURL_Call
- func (_c *MockForge_ParseRepoURL_Call) Run(run func(u string)) *MockForge_ParseRepoURL_Call
- func (_c *MockForge_ParseRepoURL_Call) RunAndReturn(run func(u string) (string, string, bool)) *MockForge_ParseRepoURL_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) CanWrite ¶ added in v0.31.0
func (_mock *MockForge) CanWrite(ctx context.Context, owner string, repo string, login string) (bool, error)
CanWrite provides a mock function for the type MockForge
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) LabelledBy ¶ added in v0.31.0
func (_mock *MockForge) LabelledBy(ctx context.Context, owner string, repo string, number int, labels []string) (string, string, bool, error)
LabelledBy 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) ParsePRURL ¶ added in v0.27.0
ParsePRURL provides a mock function for the type MockForge
func (*MockForge) ParseRepoURL ¶ added in v0.27.0
ParseRepoURL provides a mock function for the type MockForge
type MockForge_CanWrite_Call ¶ added in v0.31.0
MockForge_CanWrite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanWrite'
func (*MockForge_CanWrite_Call) Return ¶ added in v0.31.0
func (_c *MockForge_CanWrite_Call) Return(b bool, err error) *MockForge_CanWrite_Call
func (*MockForge_CanWrite_Call) Run ¶ added in v0.31.0
func (_c *MockForge_CanWrite_Call) Run(run func(ctx context.Context, owner string, repo string, login string)) *MockForge_CanWrite_Call
func (*MockForge_CanWrite_Call) RunAndReturn ¶ added in v0.31.0
func (_c *MockForge_CanWrite_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, login string) (bool, error)) *MockForge_CanWrite_Call
type MockForge_Expecter ¶ added in v0.26.0
type MockForge_Expecter struct {
// contains filtered or unexported fields
}
func (*MockForge_Expecter) CanWrite ¶ added in v0.31.0
func (_e *MockForge_Expecter) CanWrite(ctx any, owner any, repo any, login any) *MockForge_CanWrite_Call
CanWrite is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- login string
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) LabelledBy ¶ added in v0.31.0
func (_e *MockForge_Expecter) LabelledBy(ctx any, owner any, repo any, number any, labels any) *MockForge_LabelledBy_Call
LabelledBy is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- labels []string
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) ParsePRURL ¶ added in v0.27.0
func (_e *MockForge_Expecter) ParsePRURL(u any) *MockForge_ParsePRURL_Call
ParsePRURL is a helper method to define mock.On call
- u string
func (*MockForge_Expecter) ParseRepoURL ¶ added in v0.27.0
func (_e *MockForge_Expecter) ParseRepoURL(u any) *MockForge_ParseRepoURL_Call
ParseRepoURL is a helper method to define mock.On call
- u string
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_LabelledBy_Call ¶ added in v0.31.0
MockForge_LabelledBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LabelledBy'
func (*MockForge_LabelledBy_Call) Return ¶ added in v0.31.0
func (_c *MockForge_LabelledBy_Call) Return(s string, s1 string, b bool, err error) *MockForge_LabelledBy_Call
func (*MockForge_LabelledBy_Call) Run ¶ added in v0.31.0
func (_c *MockForge_LabelledBy_Call) Run(run func(ctx context.Context, owner string, repo string, number int, labels []string)) *MockForge_LabelledBy_Call
func (*MockForge_LabelledBy_Call) RunAndReturn ¶ added in v0.31.0
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_ParsePRURL_Call ¶ added in v0.27.0
MockForge_ParsePRURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParsePRURL'
func (*MockForge_ParsePRURL_Call) Return ¶ added in v0.27.0
func (_c *MockForge_ParsePRURL_Call) Return(owner string, repo string, number int, ok bool) *MockForge_ParsePRURL_Call
func (*MockForge_ParsePRURL_Call) Run ¶ added in v0.27.0
func (_c *MockForge_ParsePRURL_Call) Run(run func(u string)) *MockForge_ParsePRURL_Call
func (*MockForge_ParsePRURL_Call) RunAndReturn ¶ added in v0.27.0
func (_c *MockForge_ParsePRURL_Call) RunAndReturn(run func(u string) (string, string, int, bool)) *MockForge_ParsePRURL_Call
type MockForge_ParseRepoURL_Call ¶ added in v0.27.0
MockForge_ParseRepoURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseRepoURL'
func (*MockForge_ParseRepoURL_Call) Return ¶ added in v0.27.0
func (_c *MockForge_ParseRepoURL_Call) Return(owner string, repo string, ok bool) *MockForge_ParseRepoURL_Call
func (*MockForge_ParseRepoURL_Call) Run ¶ added in v0.27.0
func (_c *MockForge_ParseRepoURL_Call) Run(run func(u string)) *MockForge_ParseRepoURL_Call
func (*MockForge_ParseRepoURL_Call) RunAndReturn ¶ added in v0.27.0
func (_c *MockForge_ParseRepoURL_Call) RunAndReturn(run func(u string) (string, string, bool)) *MockForge_ParseRepoURL_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