mocks

package
v0.0.0-...-308d61d Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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

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.

func (*MockBackendClient) GetKey

func (m *MockBackendClient) GetKey(ctx context.Context, key string) (string, error)

GetKey mocks base method.

func (*MockBackendClient) SetKey

func (m *MockBackendClient) SetKey(ctx context.Context, key, value string) error

SetKey mocks base method.

type MockBackendClientMockRecorder

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

MockBackendClientMockRecorder is the mock recorder for MockBackendClient.

func (*MockBackendClientMockRecorder) Close

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

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

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.

Jump to

Keyboard shortcuts

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