Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBackendClient
- func (m *MockBackendClient) Close() error
- func (m *MockBackendClient) EXPECT() *MockBackendClientMockRecorder
- func (m *MockBackendClient) Flush(ctx context.Context) error
- func (m *MockBackendClient) GetKey(ctx context.Context, key string) (string, error)
- func (m *MockBackendClient) SetKey(ctx context.Context, key, value string) error
- type MockBackendClientMockRecorder
- func (mr *MockBackendClientMockRecorder) Close() *gomock.Call
- func (mr *MockBackendClientMockRecorder) Flush(ctx interface{}) *gomock.Call
- func (mr *MockBackendClientMockRecorder) GetKey(ctx, key interface{}) *gomock.Call
- func (mr *MockBackendClientMockRecorder) SetKey(ctx, key, value interface{}) *gomock.Call
- type MockHackernewsClient
- func (m *MockHackernewsClient) AskStories(arg0 context.Context) ([]int, error)
- func (m *MockHackernewsClient) BestStories(arg0 context.Context) ([]int, error)
- func (m *MockHackernewsClient) EXPECT() *MockHackernewsClientMockRecorder
- func (m *MockHackernewsClient) GetItem(arg0 context.Context, arg1 int) (hackernews.Item, error)
- func (m *MockHackernewsClient) GetUser(arg0 context.Context, arg1 string) (hackernews.User, error)
- func (m *MockHackernewsClient) JobStories(arg0 context.Context) ([]int, error)
- func (m *MockHackernewsClient) MaxItemID(arg0 context.Context) (int, error)
- func (m *MockHackernewsClient) NewStories(arg0 context.Context) ([]int, error)
- func (m *MockHackernewsClient) ShowStories(arg0 context.Context) ([]int, error)
- func (m *MockHackernewsClient) TopStories(arg0 context.Context) ([]int, error)
- func (m *MockHackernewsClient) Updates(arg0 context.Context) (*hackernews.Updates, error)
- type MockHackernewsClientMockRecorder
- func (mr *MockHackernewsClientMockRecorder) AskStories(arg0 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) BestStories(arg0 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) GetItem(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) JobStories(arg0 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) MaxItemID(arg0 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) NewStories(arg0 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) ShowStories(arg0 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) TopStories(arg0 interface{}) *gomock.Call
- func (mr *MockHackernewsClientMockRecorder) Updates(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackendClient ¶
type MockBackendClient struct {
// contains filtered or unexported fields
}
MockBackendClient is a mock of BackendClient interface.
func NewMockBackendClient ¶
func NewMockBackendClient(ctrl *gomock.Controller) *MockBackendClient
NewMockBackendClient creates a new mock instance.
func (*MockBackendClient) Close ¶
func (m *MockBackendClient) Close() error
Close mocks base method.
func (*MockBackendClient) EXPECT ¶
func (m *MockBackendClient) EXPECT() *MockBackendClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackendClient) Flush ¶
func (m *MockBackendClient) Flush(ctx context.Context) error
Flush mocks base method.
type MockBackendClientMockRecorder ¶
type MockBackendClientMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendClientMockRecorder is the mock recorder for MockBackendClient.
func (*MockBackendClientMockRecorder) Close ¶
func (mr *MockBackendClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockBackendClientMockRecorder) Flush ¶
func (mr *MockBackendClientMockRecorder) Flush(ctx interface{}) *gomock.Call
Flush indicates an expected call of Flush.
func (*MockBackendClientMockRecorder) GetKey ¶
func (mr *MockBackendClientMockRecorder) GetKey(ctx, key interface{}) *gomock.Call
GetKey indicates an expected call of GetKey.
func (*MockBackendClientMockRecorder) SetKey ¶
func (mr *MockBackendClientMockRecorder) SetKey(ctx, key, value interface{}) *gomock.Call
SetKey indicates an expected call of SetKey.
type MockHackernewsClient ¶
type MockHackernewsClient struct {
// contains filtered or unexported fields
}
MockHackernewsClient is a mock of HackernewsClient interface.
func NewMockHackernewsClient ¶
func NewMockHackernewsClient(ctrl *gomock.Controller) *MockHackernewsClient
NewMockHackernewsClient creates a new mock instance.
func (*MockHackernewsClient) AskStories ¶
func (m *MockHackernewsClient) AskStories(arg0 context.Context) ([]int, error)
AskStories mocks base method.
func (*MockHackernewsClient) BestStories ¶
func (m *MockHackernewsClient) BestStories(arg0 context.Context) ([]int, error)
BestStories mocks base method.
func (*MockHackernewsClient) EXPECT ¶
func (m *MockHackernewsClient) EXPECT() *MockHackernewsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHackernewsClient) GetItem ¶
func (m *MockHackernewsClient) GetItem(arg0 context.Context, arg1 int) (hackernews.Item, error)
GetItem mocks base method.
func (*MockHackernewsClient) GetUser ¶
func (m *MockHackernewsClient) GetUser(arg0 context.Context, arg1 string) (hackernews.User, error)
GetUser mocks base method.
func (*MockHackernewsClient) JobStories ¶
func (m *MockHackernewsClient) JobStories(arg0 context.Context) ([]int, error)
JobStories mocks base method.
func (*MockHackernewsClient) MaxItemID ¶
func (m *MockHackernewsClient) MaxItemID(arg0 context.Context) (int, error)
MaxItemID mocks base method.
func (*MockHackernewsClient) NewStories ¶
func (m *MockHackernewsClient) NewStories(arg0 context.Context) ([]int, error)
NewStories mocks base method.
func (*MockHackernewsClient) ShowStories ¶
func (m *MockHackernewsClient) ShowStories(arg0 context.Context) ([]int, error)
ShowStories mocks base method.
func (*MockHackernewsClient) TopStories ¶
func (m *MockHackernewsClient) TopStories(arg0 context.Context) ([]int, error)
TopStories mocks base method.
func (*MockHackernewsClient) Updates ¶
func (m *MockHackernewsClient) Updates(arg0 context.Context) (*hackernews.Updates, error)
Updates mocks base method.
type MockHackernewsClientMockRecorder ¶
type MockHackernewsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockHackernewsClientMockRecorder is the mock recorder for MockHackernewsClient.
func (*MockHackernewsClientMockRecorder) AskStories ¶
func (mr *MockHackernewsClientMockRecorder) AskStories(arg0 interface{}) *gomock.Call
AskStories indicates an expected call of AskStories.
func (*MockHackernewsClientMockRecorder) BestStories ¶
func (mr *MockHackernewsClientMockRecorder) BestStories(arg0 interface{}) *gomock.Call
BestStories indicates an expected call of BestStories.
func (*MockHackernewsClientMockRecorder) GetItem ¶
func (mr *MockHackernewsClientMockRecorder) GetItem(arg0, arg1 interface{}) *gomock.Call
GetItem indicates an expected call of GetItem.
func (*MockHackernewsClientMockRecorder) GetUser ¶
func (mr *MockHackernewsClientMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockHackernewsClientMockRecorder) JobStories ¶
func (mr *MockHackernewsClientMockRecorder) JobStories(arg0 interface{}) *gomock.Call
JobStories indicates an expected call of JobStories.
func (*MockHackernewsClientMockRecorder) MaxItemID ¶
func (mr *MockHackernewsClientMockRecorder) MaxItemID(arg0 interface{}) *gomock.Call
MaxItemID indicates an expected call of MaxItemID.
func (*MockHackernewsClientMockRecorder) NewStories ¶
func (mr *MockHackernewsClientMockRecorder) NewStories(arg0 interface{}) *gomock.Call
NewStories indicates an expected call of NewStories.
func (*MockHackernewsClientMockRecorder) ShowStories ¶
func (mr *MockHackernewsClientMockRecorder) ShowStories(arg0 interface{}) *gomock.Call
ShowStories indicates an expected call of ShowStories.
func (*MockHackernewsClientMockRecorder) TopStories ¶
func (mr *MockHackernewsClientMockRecorder) TopStories(arg0 interface{}) *gomock.Call
TopStories indicates an expected call of TopStories.
func (*MockHackernewsClientMockRecorder) Updates ¶
func (mr *MockHackernewsClientMockRecorder) Updates(arg0 interface{}) *gomock.Call
Updates indicates an expected call of Updates.