mock

package
v0.0.0-...-f6484e8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: Apache-2.0 Imports: 8 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
}

MockAdminClient is a mock of AdminClient interface

func NewMockAdminClient

func NewMockAdminClient(ctrl *gomock.Controller) *MockAdminClient

NewMockAdminClient creates a new mock instance

func (*MockAdminClient) ClusterStatus

func (_m *MockAdminClient) ClusterStatus() (*pb.ClusterStatus, error)

ClusterStatus mocks base method

func (*MockAdminClient) CreateTable

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

CreateTable mocks base method

func (*MockAdminClient) DeleteTable

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

DeleteTable mocks base method

func (*MockAdminClient) DisableTable

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

DisableTable mocks base method

func (*MockAdminClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAdminClient) EnableTable

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

EnableTable mocks base method

type MockAdminClientMockRecorder

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

MockAdminClientMockRecorder is the mock recorder for MockAdminClient

func (*MockAdminClientMockRecorder) ClusterStatus

func (_mr *MockAdminClientMockRecorder) ClusterStatus() *gomock.Call

ClusterStatus indicates an expected call of ClusterStatus

func (*MockAdminClientMockRecorder) CreateTable

func (_mr *MockAdminClientMockRecorder) CreateTable(arg0 interface{}) *gomock.Call

CreateTable indicates an expected call of CreateTable

func (*MockAdminClientMockRecorder) DeleteTable

func (_mr *MockAdminClientMockRecorder) DeleteTable(arg0 interface{}) *gomock.Call

DeleteTable indicates an expected call of DeleteTable

func (*MockAdminClientMockRecorder) DisableTable

func (_mr *MockAdminClientMockRecorder) DisableTable(arg0 interface{}) *gomock.Call

DisableTable indicates an expected call of DisableTable

func (*MockAdminClientMockRecorder) EnableTable

func (_mr *MockAdminClientMockRecorder) EnableTable(arg0 interface{}) *gomock.Call

EnableTable indicates an expected call of EnableTable

type MockCall

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

MockCall is a mock of Call interface

func NewMockCall

func NewMockCall(ctrl *gomock.Controller) *MockCall

NewMockCall creates a new mock instance

func (*MockCall) Context

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

Context mocks base method

func (*MockCall) EXPECT

func (_m *MockCall) EXPECT() *MockCallMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCall) Key

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

Key mocks base method

func (*MockCall) Name

func (_m *MockCall) Name() string

Name mocks base method

func (*MockCall) NewResponse

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

NewResponse mocks base method

func (*MockCall) Region

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

Region mocks base method

func (*MockCall) ResultChan

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

ResultChan mocks base method

func (*MockCall) SetRegion

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

SetRegion mocks base method

func (*MockCall) Table

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

Table mocks base method

func (*MockCall) ToProto

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

ToProto mocks base method

type MockCallMockRecorder

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

MockCallMockRecorder is the mock recorder for MockCall

func (*MockCallMockRecorder) Context

func (_mr *MockCallMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context

func (*MockCallMockRecorder) Key

func (_mr *MockCallMockRecorder) Key() *gomock.Call

Key indicates an expected call of Key

func (*MockCallMockRecorder) Name

func (_mr *MockCallMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

func (*MockCallMockRecorder) NewResponse

func (_mr *MockCallMockRecorder) NewResponse() *gomock.Call

NewResponse indicates an expected call of NewResponse

func (*MockCallMockRecorder) Region

func (_mr *MockCallMockRecorder) Region() *gomock.Call

Region indicates an expected call of Region

func (*MockCallMockRecorder) ResultChan

func (_mr *MockCallMockRecorder) ResultChan() *gomock.Call

ResultChan indicates an expected call of ResultChan

func (*MockCallMockRecorder) SetRegion

func (_mr *MockCallMockRecorder) SetRegion(arg0 interface{}) *gomock.Call

SetRegion indicates an expected call of SetRegion

func (*MockCallMockRecorder) Table

func (_mr *MockCallMockRecorder) Table() *gomock.Call

Table indicates an expected call of Table

func (*MockCallMockRecorder) ToProto

func (_mr *MockCallMockRecorder) ToProto() *gomock.Call

ToProto indicates an expected call of ToProto

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) Append

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

Append mocks base method

func (*MockClient) CheckAndPut

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

CheckAndPut mocks base method

func (*MockClient) Close

func (_m *MockClient) Close()

Close mocks base method

func (*MockClient) Delete

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

Delete mocks base method

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClient) Get

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

Get mocks base method

func (*MockClient) Increment

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

Increment mocks base method

func (*MockClient) Put

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

Put mocks base method

func (*MockClient) Scan

func (_m *MockClient) Scan(_param0 *hrpc.Scan) hrpc.Scanner

Scan mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) Append

func (_mr *MockClientMockRecorder) Append(arg0 interface{}) *gomock.Call

Append indicates an expected call of Append

func (*MockClientMockRecorder) CheckAndPut

func (_mr *MockClientMockRecorder) CheckAndPut(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CheckAndPut indicates an expected call of CheckAndPut

func (*MockClientMockRecorder) Close

func (_mr *MockClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockClientMockRecorder) Delete

func (_mr *MockClientMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockClientMockRecorder) Get

func (_mr *MockClientMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockClientMockRecorder) Increment

func (_mr *MockClientMockRecorder) Increment(arg0 interface{}) *gomock.Call

Increment indicates an expected call of Increment

func (*MockClientMockRecorder) Put

func (_mr *MockClientMockRecorder) Put(arg0 interface{}) *gomock.Call

Put indicates an expected call of Put

func (*MockClientMockRecorder) Scan

func (_mr *MockClientMockRecorder) Scan(arg0 interface{}) *gomock.Call

Scan indicates an expected call of Scan

type MockConn

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

MockConn is a mock of Conn interface

func NewMockConn

func NewMockConn(ctrl *gomock.Controller) *MockConn

NewMockConn creates a new mock instance

func (*MockConn) Close

func (_m *MockConn) Close() error

Close mocks base method

func (*MockConn) EXPECT

func (_m *MockConn) EXPECT() *MockConnMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockConn) LocalAddr

func (_m *MockConn) LocalAddr() net.Addr

LocalAddr mocks base method

func (*MockConn) Read

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

Read mocks base method

func (*MockConn) RemoteAddr

func (_m *MockConn) RemoteAddr() net.Addr

RemoteAddr mocks base method

func (*MockConn) SetDeadline

func (_m *MockConn) SetDeadline(_param0 time.Time) error

SetDeadline mocks base method

func (*MockConn) SetReadDeadline

func (_m *MockConn) SetReadDeadline(_param0 time.Time) error

SetReadDeadline mocks base method

func (*MockConn) SetWriteDeadline

func (_m *MockConn) SetWriteDeadline(_param0 time.Time) error

SetWriteDeadline mocks base method

func (*MockConn) Write

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

Write mocks base method

type MockConnMockRecorder

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

MockConnMockRecorder is the mock recorder for MockConn

func (*MockConnMockRecorder) Close

func (_mr *MockConnMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockConnMockRecorder) LocalAddr

func (_mr *MockConnMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr

func (*MockConnMockRecorder) Read

func (_mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockConnMockRecorder) RemoteAddr

func (_mr *MockConnMockRecorder) RemoteAddr() *gomock.Call

RemoteAddr indicates an expected call of RemoteAddr

func (*MockConnMockRecorder) SetDeadline

func (_mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline

func (*MockConnMockRecorder) SetReadDeadline

func (_mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline

func (*MockConnMockRecorder) SetWriteDeadline

func (_mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline

func (*MockConnMockRecorder) Write

func (_mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

type MockRPCClient

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

MockRPCClient is a mock of RPCClient interface

func NewMockRPCClient

func NewMockRPCClient(ctrl *gomock.Controller) *MockRPCClient

NewMockRPCClient creates a new mock instance

func (*MockRPCClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRPCClient) SendRPC

func (_m *MockRPCClient) SendRPC(_param0 hrpc.Call) (proto.Message, error)

SendRPC mocks base method

type MockRPCClientMockRecorder

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

MockRPCClientMockRecorder is the mock recorder for MockRPCClient

func (*MockRPCClientMockRecorder) SendRPC

func (_mr *MockRPCClientMockRecorder) SendRPC(arg0 interface{}) *gomock.Call

SendRPC indicates an expected call of SendRPC

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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