mock

package
v0.0.0-...-bd35f24 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdminClient

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

Mock of AdminClient interface

func NewMockAdminClient

func NewMockAdminClient(ctrl *gomock.Controller) *MockAdminClient

func (*MockAdminClient) CreateTable

func (_m *MockAdminClient) CreateTable(_param0 *hrpc.CreateTable) error

func (*MockAdminClient) DeleteTable

func (_m *MockAdminClient) DeleteTable(_param0 *hrpc.DeleteTable) error

func (*MockAdminClient) DisableTable

func (_m *MockAdminClient) DisableTable(_param0 *hrpc.DisableTable) error

func (*MockAdminClient) EXPECT

func (_m *MockAdminClient) EXPECT() *_MockAdminClientRecorder

func (*MockAdminClient) EnableTable

func (_m *MockAdminClient) EnableTable(_param0 *hrpc.EnableTable) error

type MockCall

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

Mock of Call interface

func NewMockCall

func NewMockCall(ctrl *gomock.Controller) *MockCall

func (*MockCall) Context

func (_m *MockCall) Context() context.Context

func (*MockCall) EXPECT

func (_m *MockCall) EXPECT() *_MockCallRecorder

func (*MockCall) Key

func (_m *MockCall) Key() []byte

func (*MockCall) Name

func (_m *MockCall) Name() string

func (*MockCall) NewResponse

func (_m *MockCall) NewResponse() proto.Message

func (*MockCall) Region

func (_m *MockCall) Region() hrpc.RegionInfo

func (*MockCall) ResultChan

func (_m *MockCall) ResultChan() chan hrpc.RPCResult

func (*MockCall) Serialize

func (_m *MockCall) Serialize() ([]byte, error)

func (*MockCall) SetFamilies

func (_m *MockCall) SetFamilies(_param0 map[string][]string) error

func (*MockCall) SetFilter

func (_m *MockCall) SetFilter(_param0 filter.Filter) error

func (*MockCall) SetRegion

func (_m *MockCall) SetRegion(_param0 hrpc.RegionInfo)

func (*MockCall) Table

func (_m *MockCall) Table() []byte

type MockClient

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

Mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) Append

func (_m *MockClient) Append(_param0 *hrpc.Mutate) (*hrpc.Result, error)

func (*MockClient) CheckAndPut

func (_m *MockClient) CheckAndPut(_param0 *hrpc.Mutate, _param1 string, _param2 string, _param3 []byte) (bool, error)

func (*MockClient) Close

func (_m *MockClient) Close()

func (*MockClient) Delete

func (_m *MockClient) Delete(_param0 *hrpc.Mutate) (*hrpc.Result, error)

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *_MockClientRecorder

func (*MockClient) Get

func (_m *MockClient) Get(_param0 *hrpc.Get) (*hrpc.Result, error)

func (*MockClient) Increment

func (_m *MockClient) Increment(_param0 *hrpc.Mutate) (int64, error)

func (*MockClient) Put

func (_m *MockClient) Put(_param0 *hrpc.Mutate) (*hrpc.Result, error)

func (*MockClient) Scan

func (_m *MockClient) Scan(_param0 *hrpc.Scan) ([]*hrpc.Result, error)

type MockReadWriteCloser

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

Mock of ReadWriteCloser interface

func NewMockReadWriteCloser

func NewMockReadWriteCloser(ctrl *gomock.Controller) *MockReadWriteCloser

func (*MockReadWriteCloser) Close

func (_m *MockReadWriteCloser) Close() error

func (*MockReadWriteCloser) EXPECT

func (_m *MockReadWriteCloser) EXPECT() *_MockReadWriteCloserRecorder

func (*MockReadWriteCloser) Read

func (_m *MockReadWriteCloser) Read(_param0 []byte) (int, error)

func (*MockReadWriteCloser) Write

func (_m *MockReadWriteCloser) Write(_param0 []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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