mocks

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBPool

type DBPool struct {
	mock.Mock
}

DBPool is an autogenerated mock type for the DBPool type

func NewDBPool

func NewDBPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *DBPool

NewDBPool creates a new instance of DBPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DBPool) EXPECT

func (_m *DBPool) EXPECT() *DBPool_Expecter

func (*DBPool) Exec

func (_m *DBPool) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)

Exec provides a mock function with given fields: ctx, sql, arguments

func (*DBPool) QueryRow

func (_m *DBPool) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row

QueryRow provides a mock function with given fields: ctx, sql, args

type DBPool_Exec_Call

type DBPool_Exec_Call struct {
	*mock.Call
}

DBPool_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'

func (*DBPool_Exec_Call) Return

func (*DBPool_Exec_Call) Run

func (_c *DBPool_Exec_Call) Run(run func(ctx context.Context, sql string, arguments ...interface{})) *DBPool_Exec_Call

func (*DBPool_Exec_Call) RunAndReturn

func (_c *DBPool_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *DBPool_Exec_Call

type DBPool_Expecter

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

func (*DBPool_Expecter) Exec

func (_e *DBPool_Expecter) Exec(ctx interface{}, sql interface{}, arguments ...interface{}) *DBPool_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • arguments ...interface{}

func (*DBPool_Expecter) QueryRow

func (_e *DBPool_Expecter) QueryRow(ctx interface{}, sql interface{}, args ...interface{}) *DBPool_QueryRow_Call

QueryRow is a helper method to define mock.On call

  • ctx context.Context
  • sql string
  • args ...interface{}

type DBPool_QueryRow_Call

type DBPool_QueryRow_Call struct {
	*mock.Call
}

DBPool_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'

func (*DBPool_QueryRow_Call) Return

func (*DBPool_QueryRow_Call) Run

func (_c *DBPool_QueryRow_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *DBPool_QueryRow_Call

func (*DBPool_QueryRow_Call) RunAndReturn

func (_c *DBPool_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *DBPool_QueryRow_Call

type KafkaClient

type KafkaClient struct {
	mock.Mock
}

KafkaClient is an autogenerated mock type for the KafkaClient type

func NewKafkaClient

func NewKafkaClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *KafkaClient

NewKafkaClient creates a new instance of KafkaClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KafkaClient) Close

func (_m *KafkaClient) Close()

Close provides a mock function with given fields:

func (*KafkaClient) EXPECT

func (_m *KafkaClient) EXPECT() *KafkaClient_Expecter

func (*KafkaClient) Flush

func (_m *KafkaClient) Flush(ctx context.Context) error

Flush provides a mock function with given fields: ctx

func (*KafkaClient) Produce

func (_m *KafkaClient) Produce(ctx context.Context, r *kgo.Record, promise func(*kgo.Record, error))

Produce provides a mock function with given fields: ctx, r, promise

type KafkaClient_Close_Call

type KafkaClient_Close_Call struct {
	*mock.Call
}

KafkaClient_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*KafkaClient_Close_Call) Return

func (*KafkaClient_Close_Call) Run

func (_c *KafkaClient_Close_Call) Run(run func()) *KafkaClient_Close_Call

func (*KafkaClient_Close_Call) RunAndReturn

func (_c *KafkaClient_Close_Call) RunAndReturn(run func()) *KafkaClient_Close_Call

type KafkaClient_Expecter

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

func (*KafkaClient_Expecter) Close

Close is a helper method to define mock.On call

func (*KafkaClient_Expecter) Flush

func (_e *KafkaClient_Expecter) Flush(ctx interface{}) *KafkaClient_Flush_Call

Flush is a helper method to define mock.On call

  • ctx context.Context

func (*KafkaClient_Expecter) Produce

func (_e *KafkaClient_Expecter) Produce(ctx interface{}, r interface{}, promise interface{}) *KafkaClient_Produce_Call

Produce is a helper method to define mock.On call

  • ctx context.Context
  • r *kgo.Record
  • promise func(*kgo.Record , error)

type KafkaClient_Flush_Call

type KafkaClient_Flush_Call struct {
	*mock.Call
}

KafkaClient_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'

func (*KafkaClient_Flush_Call) Return

func (*KafkaClient_Flush_Call) Run

func (*KafkaClient_Flush_Call) RunAndReturn

func (_c *KafkaClient_Flush_Call) RunAndReturn(run func(context.Context) error) *KafkaClient_Flush_Call

type KafkaClient_Produce_Call

type KafkaClient_Produce_Call struct {
	*mock.Call
}

KafkaClient_Produce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Produce'

func (*KafkaClient_Produce_Call) Return

func (*KafkaClient_Produce_Call) Run

func (_c *KafkaClient_Produce_Call) Run(run func(ctx context.Context, r *kgo.Record, promise func(*kgo.Record, error))) *KafkaClient_Produce_Call

func (*KafkaClient_Produce_Call) RunAndReturn

func (_c *KafkaClient_Produce_Call) RunAndReturn(run func(context.Context, *kgo.Record, func(*kgo.Record, error))) *KafkaClient_Produce_Call

type RPCClient

type RPCClient struct {
	mock.Mock
}

RPCClient is an autogenerated mock type for the RPCClient type

func NewRPCClient

func NewRPCClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RPCClient

NewRPCClient creates a new instance of RPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RPCClient) ABCIQuery added in v0.1.10

func (_m *RPCClient) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)

ABCIQuery provides a mock function with given fields: ctx, path, data

func (*RPCClient) Block

func (_m *RPCClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)

Block provides a mock function with given fields: ctx, height

func (*RPCClient) BlockResults

func (_m *RPCClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)

BlockResults provides a mock function with given fields: ctx, height

func (*RPCClient) EXPECT

func (_m *RPCClient) EXPECT() *RPCClient_Expecter

func (*RPCClient) Header

func (_m *RPCClient) Header(ctx context.Context, height *int64) (*coretypes.ResultHeader, error)

Header provides a mock function with given fields: ctx, height

func (*RPCClient) Status

func (_m *RPCClient) Status(ctx context.Context) (*coretypes.ResultStatus, error)

Status provides a mock function with given fields: ctx

type RPCClient_ABCIQuery_Call added in v0.1.10

type RPCClient_ABCIQuery_Call struct {
	*mock.Call
}

RPCClient_ABCIQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ABCIQuery'

func (*RPCClient_ABCIQuery_Call) Return added in v0.1.10

func (*RPCClient_ABCIQuery_Call) Run added in v0.1.10

func (*RPCClient_ABCIQuery_Call) RunAndReturn added in v0.1.10

type RPCClient_BlockResults_Call

type RPCClient_BlockResults_Call struct {
	*mock.Call
}

RPCClient_BlockResults_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockResults'

func (*RPCClient_BlockResults_Call) Return

func (*RPCClient_BlockResults_Call) Run

func (*RPCClient_BlockResults_Call) RunAndReturn

type RPCClient_Block_Call

type RPCClient_Block_Call struct {
	*mock.Call
}

RPCClient_Block_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Block'

func (*RPCClient_Block_Call) Return

func (*RPCClient_Block_Call) Run

func (_c *RPCClient_Block_Call) Run(run func(ctx context.Context, height *int64)) *RPCClient_Block_Call

func (*RPCClient_Block_Call) RunAndReturn

type RPCClient_Expecter

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

func (*RPCClient_Expecter) ABCIQuery added in v0.1.10

func (_e *RPCClient_Expecter) ABCIQuery(ctx interface{}, path interface{}, data interface{}) *RPCClient_ABCIQuery_Call

ABCIQuery is a helper method to define mock.On call

  • ctx context.Context
  • path string
  • data bytes.HexBytes

func (*RPCClient_Expecter) Block

func (_e *RPCClient_Expecter) Block(ctx interface{}, height interface{}) *RPCClient_Block_Call

Block is a helper method to define mock.On call

  • ctx context.Context
  • height *int64

func (*RPCClient_Expecter) BlockResults

func (_e *RPCClient_Expecter) BlockResults(ctx interface{}, height interface{}) *RPCClient_BlockResults_Call

BlockResults is a helper method to define mock.On call

  • ctx context.Context
  • height *int64

func (*RPCClient_Expecter) Header

func (_e *RPCClient_Expecter) Header(ctx interface{}, height interface{}) *RPCClient_Header_Call

Header is a helper method to define mock.On call

  • ctx context.Context
  • height *int64

func (*RPCClient_Expecter) Status

func (_e *RPCClient_Expecter) Status(ctx interface{}) *RPCClient_Status_Call

Status is a helper method to define mock.On call

  • ctx context.Context

type RPCClient_Header_Call

type RPCClient_Header_Call struct {
	*mock.Call
}

RPCClient_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'

func (*RPCClient_Header_Call) Return

func (*RPCClient_Header_Call) Run

func (_c *RPCClient_Header_Call) Run(run func(ctx context.Context, height *int64)) *RPCClient_Header_Call

func (*RPCClient_Header_Call) RunAndReturn

type RPCClient_Status_Call

type RPCClient_Status_Call struct {
	*mock.Call
}

RPCClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'

func (*RPCClient_Status_Call) Return

func (*RPCClient_Status_Call) Run

func (*RPCClient_Status_Call) RunAndReturn

type RowInterface

type RowInterface struct {
	mock.Mock
}

RowInterface is an autogenerated mock type for the RowInterface type

func NewRowInterface

func NewRowInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *RowInterface

NewRowInterface creates a new instance of RowInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RowInterface) EXPECT

func (_m *RowInterface) EXPECT() *RowInterface_Expecter

func (*RowInterface) Scan

func (_m *RowInterface) Scan(dest ...interface{}) error

Scan provides a mock function with given fields: dest

type RowInterface_Expecter

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

func (*RowInterface_Expecter) Scan

func (_e *RowInterface_Expecter) Scan(dest ...interface{}) *RowInterface_Scan_Call

Scan is a helper method to define mock.On call

  • dest ...interface{}

type RowInterface_Scan_Call

type RowInterface_Scan_Call struct {
	*mock.Call
}

RowInterface_Scan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scan'

func (*RowInterface_Scan_Call) Return

func (*RowInterface_Scan_Call) Run

func (_c *RowInterface_Scan_Call) Run(run func(dest ...interface{})) *RowInterface_Scan_Call

func (*RowInterface_Scan_Call) RunAndReturn

func (_c *RowInterface_Scan_Call) RunAndReturn(run func(...interface{}) error) *RowInterface_Scan_Call

Jump to

Keyboard shortcuts

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