mock_v2

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock_v2 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCryptoProvider

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

MockCryptoProvider is a mock of CryptoProvider interface

func NewMockCryptoProvider

func NewMockCryptoProvider(ctrl *gomock.Controller) *MockCryptoProvider

NewMockCryptoProvider creates a new mock instance

func (*MockCryptoProvider) EXPECT

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

func (*MockCryptoProvider) GetRawChain

func (m *MockCryptoProvider) GetRawChain(arg0 context.Context, arg1 addr.IA, arg2 scrypto.Version, arg3 infra.ChainOpts, arg4 net.Addr) ([]byte, error)

GetRawChain mocks base method

func (*MockCryptoProvider) GetRawTRC

func (m *MockCryptoProvider) GetRawTRC(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version, arg3 infra.TRCOpts, arg4 net.Addr) ([]byte, error)

GetRawTRC mocks base method

func (*MockCryptoProvider) GetTRC

func (m *MockCryptoProvider) GetTRC(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version, arg3 infra.TRCOpts) (*v20.TRC, error)

GetTRC mocks base method

type MockCryptoProviderMockRecorder

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

MockCryptoProviderMockRecorder is the mock recorder for MockCryptoProvider

func (*MockCryptoProviderMockRecorder) GetRawChain

func (mr *MockCryptoProviderMockRecorder) GetRawChain(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetRawChain indicates an expected call of GetRawChain

func (*MockCryptoProviderMockRecorder) GetRawTRC

func (mr *MockCryptoProviderMockRecorder) GetRawTRC(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetRawTRC indicates an expected call of GetRawTRC

func (*MockCryptoProviderMockRecorder) GetTRC

func (mr *MockCryptoProviderMockRecorder) GetTRC(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetTRC indicates an expected call of GetTRC

type MockDB

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

MockDB is a mock of DB interface

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance

func (*MockDB) BeginTransaction

func (m *MockDB) BeginTransaction(arg0 context.Context, arg1 *sql.TxOptions) (v2.Transaction, error)

BeginTransaction mocks base method

func (*MockDB) ChainExists

func (m *MockDB) ChainExists(arg0 context.Context, arg1 decoded.TRC) (bool, error)

ChainExists mocks base method

func (*MockDB) Close

func (m *MockDB) Close() error

Close mocks base method

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) GetRawChain

func (m *MockDB) GetRawChain(arg0 context.Context, arg1 addr.IA, arg2 scrypto.Version) ([]byte, error)

GetRawChain mocks base method

func (*MockDB) GetRawTRC

func (m *MockDB) GetRawTRC(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version) ([]byte, error)

GetRawTRC mocks base method

func (*MockDB) GetTRC

func (m *MockDB) GetTRC(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version) (*v20.TRC, error)

GetTRC mocks base method

func (*MockDB) GetTRCInfo

func (m *MockDB) GetTRCInfo(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version) (v2.TRCInfo, error)

GetTRCInfo mocks base method

func (*MockDB) InsertChain

func (m *MockDB) InsertChain(arg0 context.Context, arg1 decoded.Chain) (bool, bool, error)

InsertChain mocks base method

func (*MockDB) InsertTRC

func (m *MockDB) InsertTRC(arg0 context.Context, arg1 decoded.TRC) (bool, error)

InsertTRC mocks base method

func (*MockDB) SetMaxIdleConns

func (m *MockDB) SetMaxIdleConns(arg0 int)

SetMaxIdleConns mocks base method

func (*MockDB) SetMaxOpenConns

func (m *MockDB) SetMaxOpenConns(arg0 int)

SetMaxOpenConns mocks base method

func (*MockDB) TRCExists

func (m *MockDB) TRCExists(arg0 context.Context, arg1 decoded.TRC) (bool, error)

TRCExists mocks base method

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB

func (*MockDBMockRecorder) BeginTransaction

func (mr *MockDBMockRecorder) BeginTransaction(arg0, arg1 interface{}) *gomock.Call

BeginTransaction indicates an expected call of BeginTransaction

func (*MockDBMockRecorder) ChainExists

func (mr *MockDBMockRecorder) ChainExists(arg0, arg1 interface{}) *gomock.Call

ChainExists indicates an expected call of ChainExists

func (*MockDBMockRecorder) Close

func (mr *MockDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockDBMockRecorder) GetRawChain

func (mr *MockDBMockRecorder) GetRawChain(arg0, arg1, arg2 interface{}) *gomock.Call

GetRawChain indicates an expected call of GetRawChain

func (*MockDBMockRecorder) GetRawTRC

func (mr *MockDBMockRecorder) GetRawTRC(arg0, arg1, arg2 interface{}) *gomock.Call

GetRawTRC indicates an expected call of GetRawTRC

func (*MockDBMockRecorder) GetTRC

func (mr *MockDBMockRecorder) GetTRC(arg0, arg1, arg2 interface{}) *gomock.Call

GetTRC indicates an expected call of GetTRC

func (*MockDBMockRecorder) GetTRCInfo

func (mr *MockDBMockRecorder) GetTRCInfo(arg0, arg1, arg2 interface{}) *gomock.Call

GetTRCInfo indicates an expected call of GetTRCInfo

func (*MockDBMockRecorder) InsertChain

func (mr *MockDBMockRecorder) InsertChain(arg0, arg1 interface{}) *gomock.Call

InsertChain indicates an expected call of InsertChain

func (*MockDBMockRecorder) InsertTRC

func (mr *MockDBMockRecorder) InsertTRC(arg0, arg1 interface{}) *gomock.Call

InsertTRC indicates an expected call of InsertTRC

func (*MockDBMockRecorder) SetMaxIdleConns

func (mr *MockDBMockRecorder) SetMaxIdleConns(arg0 interface{}) *gomock.Call

SetMaxIdleConns indicates an expected call of SetMaxIdleConns

func (*MockDBMockRecorder) SetMaxOpenConns

func (mr *MockDBMockRecorder) SetMaxOpenConns(arg0 interface{}) *gomock.Call

SetMaxOpenConns indicates an expected call of SetMaxOpenConns

func (*MockDBMockRecorder) TRCExists

func (mr *MockDBMockRecorder) TRCExists(arg0, arg1 interface{}) *gomock.Call

TRCExists indicates an expected call of TRCExists

type MockInserter

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

MockInserter is a mock of Inserter interface

func NewMockInserter

func NewMockInserter(ctrl *gomock.Controller) *MockInserter

NewMockInserter creates a new mock instance

func (*MockInserter) EXPECT

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

func (*MockInserter) InsertChain

func (m *MockInserter) InsertChain(arg0 context.Context, arg1 decoded.Chain, arg2 v2.TRCProviderFunc) error

InsertChain mocks base method

func (*MockInserter) InsertTRC

func (m *MockInserter) InsertTRC(arg0 context.Context, arg1 decoded.TRC, arg2 v2.TRCProviderFunc) error

InsertTRC mocks base method

type MockInserterMockRecorder

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

MockInserterMockRecorder is the mock recorder for MockInserter

func (*MockInserterMockRecorder) InsertChain

func (mr *MockInserterMockRecorder) InsertChain(arg0, arg1, arg2 interface{}) *gomock.Call

InsertChain indicates an expected call of InsertChain

func (*MockInserterMockRecorder) InsertTRC

func (mr *MockInserterMockRecorder) InsertTRC(arg0, arg1, arg2 interface{}) *gomock.Call

InsertTRC indicates an expected call of InsertTRC

type MockRPC

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

MockRPC is a mock of RPC interface

func NewMockRPC

func NewMockRPC(ctrl *gomock.Controller) *MockRPC

NewMockRPC creates a new mock instance

func (*MockRPC) EXPECT

func (m *MockRPC) EXPECT() *MockRPCMockRecorder

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

func (*MockRPC) GetCertChain

func (m *MockRPC) GetCertChain(arg0 context.Context, arg1 v2.ChainReq, arg2 net.Addr) ([]byte, error)

GetCertChain mocks base method

func (*MockRPC) GetTRC

func (m *MockRPC) GetTRC(arg0 context.Context, arg1 v2.TRCReq, arg2 net.Addr) ([]byte, error)

GetTRC mocks base method

func (*MockRPC) SendCertChain

func (m *MockRPC) SendCertChain(arg0 context.Context, arg1 []byte, arg2 net.Addr) error

SendCertChain mocks base method

func (*MockRPC) SendTRC

func (m *MockRPC) SendTRC(arg0 context.Context, arg1 []byte, arg2 net.Addr) error

SendTRC mocks base method

func (*MockRPC) SetMsgr

func (m *MockRPC) SetMsgr(arg0 infra.Messenger)

SetMsgr mocks base method

type MockRPCMockRecorder

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

MockRPCMockRecorder is the mock recorder for MockRPC

func (*MockRPCMockRecorder) GetCertChain

func (mr *MockRPCMockRecorder) GetCertChain(arg0, arg1, arg2 interface{}) *gomock.Call

GetCertChain indicates an expected call of GetCertChain

func (*MockRPCMockRecorder) GetTRC

func (mr *MockRPCMockRecorder) GetTRC(arg0, arg1, arg2 interface{}) *gomock.Call

GetTRC indicates an expected call of GetTRC

func (*MockRPCMockRecorder) SendCertChain

func (mr *MockRPCMockRecorder) SendCertChain(arg0, arg1, arg2 interface{}) *gomock.Call

SendCertChain indicates an expected call of SendCertChain

func (*MockRPCMockRecorder) SendTRC

func (mr *MockRPCMockRecorder) SendTRC(arg0, arg1, arg2 interface{}) *gomock.Call

SendTRC indicates an expected call of SendTRC

func (*MockRPCMockRecorder) SetMsgr

func (mr *MockRPCMockRecorder) SetMsgr(arg0 interface{}) *gomock.Call

SetMsgr indicates an expected call of SetMsgr

type MockRecurser

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

MockRecurser is a mock of Recurser interface

func NewMockRecurser

func NewMockRecurser(ctrl *gomock.Controller) *MockRecurser

NewMockRecurser creates a new mock instance

func (*MockRecurser) AllowRecursion

func (m *MockRecurser) AllowRecursion(arg0 net.Addr) error

AllowRecursion mocks base method

func (*MockRecurser) EXPECT

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

type MockRecurserMockRecorder

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

MockRecurserMockRecorder is the mock recorder for MockRecurser

func (*MockRecurserMockRecorder) AllowRecursion

func (mr *MockRecurserMockRecorder) AllowRecursion(arg0 interface{}) *gomock.Call

AllowRecursion indicates an expected call of AllowRecursion

type MockResolver

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

MockResolver is a mock of Resolver interface

func NewMockResolver

func NewMockResolver(ctrl *gomock.Controller) *MockResolver

NewMockResolver creates a new mock instance

func (*MockResolver) Chain

func (m *MockResolver) Chain(arg0 context.Context, arg1 v2.ChainReq, arg2 net.Addr) (decoded.Chain, error)

Chain mocks base method

func (*MockResolver) EXPECT

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

func (*MockResolver) TRC

func (m *MockResolver) TRC(arg0 context.Context, arg1 v2.TRCReq, arg2 net.Addr) (decoded.TRC, error)

TRC mocks base method

type MockResolverMockRecorder

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

MockResolverMockRecorder is the mock recorder for MockResolver

func (*MockResolverMockRecorder) Chain

func (mr *MockResolverMockRecorder) Chain(arg0, arg1, arg2 interface{}) *gomock.Call

Chain indicates an expected call of Chain

func (*MockResolverMockRecorder) TRC

func (mr *MockResolverMockRecorder) TRC(arg0, arg1, arg2 interface{}) *gomock.Call

TRC indicates an expected call of TRC

type MockRouter

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

MockRouter is a mock of Router interface

func NewMockRouter

func NewMockRouter(ctrl *gomock.Controller) *MockRouter

NewMockRouter creates a new mock instance

func (*MockRouter) ChooseServer

func (m *MockRouter) ChooseServer(arg0 context.Context, arg1 addr.ISD) (net.Addr, error)

ChooseServer mocks base method

func (*MockRouter) EXPECT

func (m *MockRouter) EXPECT() *MockRouterMockRecorder

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

type MockRouterMockRecorder

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

MockRouterMockRecorder is the mock recorder for MockRouter

func (*MockRouterMockRecorder) ChooseServer

func (mr *MockRouterMockRecorder) ChooseServer(arg0, arg1 interface{}) *gomock.Call

ChooseServer indicates an expected call of ChooseServer

Jump to

Keyboard shortcuts

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