apply

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 MockIssueCommenter

type MockIssueCommenter struct {
	mock.Mock
}

MockIssueCommenter is an autogenerated mock type for the IssueCommenter type

func NewMockIssueCommenter

func NewMockIssueCommenter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIssueCommenter

NewMockIssueCommenter creates a new instance of MockIssueCommenter. 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 (*MockIssueCommenter) CreateIssueComment

func (_mock *MockIssueCommenter) CreateIssueComment(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft) (forge.Comment, error)

CreateIssueComment provides a mock function for the type MockIssueCommenter

func (*MockIssueCommenter) EXPECT

type MockIssueCommenter_CreateIssueComment_Call

type MockIssueCommenter_CreateIssueComment_Call struct {
	*mock.Call
}

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

func (*MockIssueCommenter_CreateIssueComment_Call) Return

func (*MockIssueCommenter_CreateIssueComment_Call) Run

func (*MockIssueCommenter_CreateIssueComment_Call) RunAndReturn

type MockIssueCommenter_Expecter

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

func (*MockIssueCommenter_Expecter) CreateIssueComment

func (_e *MockIssueCommenter_Expecter) CreateIssueComment(ctx any, owner any, repo any, number any, draft any) *MockIssueCommenter_CreateIssueComment_Call

CreateIssueComment is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • number int
  • draft forge.CommentDraft

type MockMergeRequestCommenter

type MockMergeRequestCommenter struct {
	mock.Mock
}

MockMergeRequestCommenter is an autogenerated mock type for the MergeRequestCommenter type

func NewMockMergeRequestCommenter

func NewMockMergeRequestCommenter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMergeRequestCommenter

NewMockMergeRequestCommenter creates a new instance of MockMergeRequestCommenter. 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 (*MockMergeRequestCommenter) Comment

func (_mock *MockMergeRequestCommenter) Comment(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft) (forge.Comment, error)

Comment provides a mock function for the type MockMergeRequestCommenter

func (*MockMergeRequestCommenter) EXPECT

type MockMergeRequestCommenter_Comment_Call

type MockMergeRequestCommenter_Comment_Call struct {
	*mock.Call
}

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

func (*MockMergeRequestCommenter_Comment_Call) Return

func (*MockMergeRequestCommenter_Comment_Call) Run

func (*MockMergeRequestCommenter_Comment_Call) RunAndReturn

type MockMergeRequestCommenter_Expecter

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

func (*MockMergeRequestCommenter_Expecter) Comment

func (_e *MockMergeRequestCommenter_Expecter) Comment(ctx any, owner any, repo any, number any, draft any) *MockMergeRequestCommenter_Comment_Call

Comment is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • number int
  • draft forge.CommentDraft

type MockWikis

type MockWikis struct {
	mock.Mock
}

MockWikis is an autogenerated mock type for the Wikis type

func NewMockWikis

func NewMockWikis(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWikis

NewMockWikis creates a new instance of MockWikis. 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 (*MockWikis) EXPECT

func (_m *MockWikis) EXPECT() *MockWikis_Expecter

func (*MockWikis) GetWikiPage

func (_mock *MockWikis) GetWikiPage(ctx context.Context, owner string, repo string, path string, maxBytes int64) (forge.WikiPage, error)

GetWikiPage provides a mock function for the type MockWikis

func (*MockWikis) UpdateWikiPage

func (_mock *MockWikis) UpdateWikiPage(ctx context.Context, owner string, repo string, page forge.WikiPage, message string) error

UpdateWikiPage provides a mock function for the type MockWikis

type MockWikis_Expecter

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

func (*MockWikis_Expecter) GetWikiPage

func (_e *MockWikis_Expecter) GetWikiPage(ctx any, owner any, repo any, path any, maxBytes any) *MockWikis_GetWikiPage_Call

GetWikiPage is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • path string
  • maxBytes int64

func (*MockWikis_Expecter) UpdateWikiPage

func (_e *MockWikis_Expecter) UpdateWikiPage(ctx any, owner any, repo any, page any, message any) *MockWikis_UpdateWikiPage_Call

UpdateWikiPage is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • page forge.WikiPage
  • message string

type MockWikis_GetWikiPage_Call

type MockWikis_GetWikiPage_Call struct {
	*mock.Call
}

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

func (*MockWikis_GetWikiPage_Call) Return

func (*MockWikis_GetWikiPage_Call) Run

func (_c *MockWikis_GetWikiPage_Call) Run(run func(ctx context.Context, owner string, repo string, path string, maxBytes int64)) *MockWikis_GetWikiPage_Call

func (*MockWikis_GetWikiPage_Call) RunAndReturn

func (_c *MockWikis_GetWikiPage_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, path string, maxBytes int64) (forge.WikiPage, error)) *MockWikis_GetWikiPage_Call

type MockWikis_UpdateWikiPage_Call

type MockWikis_UpdateWikiPage_Call struct {
	*mock.Call
}

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

func (*MockWikis_UpdateWikiPage_Call) Return

func (*MockWikis_UpdateWikiPage_Call) Run

func (_c *MockWikis_UpdateWikiPage_Call) Run(run func(ctx context.Context, owner string, repo string, page forge.WikiPage, message string)) *MockWikis_UpdateWikiPage_Call

func (*MockWikis_UpdateWikiPage_Call) RunAndReturn

func (_c *MockWikis_UpdateWikiPage_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, page forge.WikiPage, message string) error) *MockWikis_UpdateWikiPage_Call

Jump to

Keyboard shortcuts

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