Documentation
¶
Overview ¶
Package mock_github is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) FetchAttribute(ctx context.Context, url string) (map[string]int64, error)
- func (m *MockClient) ListPublicEvents(ctx context.Context, limit, offset int) ([]github.Event, error)
- func (m *MockClient) ListPublicRepos(ctx context.Context, since int64) ([]github.Repository, error)
- func (m *MockClient) SetAccessToken(ctx context.Context) (github.Token, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) FetchAttribute(ctx, url any) *gomock.Call
- func (mr *MockClientMockRecorder) ListPublicEvents(ctx, limit, offset any) *gomock.Call
- func (mr *MockClientMockRecorder) ListPublicRepos(ctx, since any) *gomock.Call
- func (mr *MockClientMockRecorder) SetAccessToken(ctx any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) FetchAttribute ¶
FetchAttribute mocks base method.
func (*MockClient) ListPublicEvents ¶
func (m *MockClient) ListPublicEvents(ctx context.Context, limit, offset int) ([]github.Event, error)
ListPublicEvents mocks base method.
func (*MockClient) ListPublicRepos ¶
func (m *MockClient) ListPublicRepos(ctx context.Context, since int64) ([]github.Repository, error)
ListPublicRepos mocks base method.
func (*MockClient) SetAccessToken ¶
SetAccessToken mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) FetchAttribute ¶
func (mr *MockClientMockRecorder) FetchAttribute(ctx, url any) *gomock.Call
FetchAttribute indicates an expected call of FetchAttribute.
func (*MockClientMockRecorder) ListPublicEvents ¶
func (mr *MockClientMockRecorder) ListPublicEvents(ctx, limit, offset any) *gomock.Call
ListPublicEvents indicates an expected call of ListPublicEvents.
func (*MockClientMockRecorder) ListPublicRepos ¶
func (mr *MockClientMockRecorder) ListPublicRepos(ctx, since any) *gomock.Call
ListPublicRepos indicates an expected call of ListPublicRepos.
func (*MockClientMockRecorder) SetAccessToken ¶
func (mr *MockClientMockRecorder) SetAccessToken(ctx any) *gomock.Call
SetAccessToken indicates an expected call of SetAccessToken.