mocks

package
v2.11.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func NewORM

func NewORM(t interface {
	mock.TestingT
	Cleanup(func())
}) *ORM

NewORM creates a new instance of ORM. 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 (*ORM) DeleteExpired

func (_m *ORM) DeleteExpired(limit uint, utcNow time.Time, qopts ...pg.QOpt) (int64, error)

DeleteExpired provides a mock function with given fields: limit, utcNow, qopts

func (*ORM) Get

func (_m *ORM) Get(address *big.Big, slotId uint, qopts ...pg.QOpt) (*s4.Row, error)

Get provides a mock function with given fields: address, slotId, qopts

func (*ORM) GetSnapshot

func (_m *ORM) GetSnapshot(addressRange *s4.AddressRange, qopts ...pg.QOpt) ([]*s4.SnapshotRow, error)

GetSnapshot provides a mock function with given fields: addressRange, qopts

func (*ORM) GetUnconfirmedRows

func (_m *ORM) GetUnconfirmedRows(limit uint, qopts ...pg.QOpt) ([]*s4.Row, error)

GetUnconfirmedRows provides a mock function with given fields: limit, qopts

func (*ORM) Update

func (_m *ORM) Update(row *s4.Row, qopts ...pg.QOpt) error

Update provides a mock function with given fields: row, qopts

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. 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 (*Storage) Constraints

func (_m *Storage) Constraints() s4.Constraints

Constraints provides a mock function with given fields:

func (*Storage) Get

func (_m *Storage) Get(ctx context.Context, key *s4.Key) (*s4.Record, *s4.Metadata, error)

Get provides a mock function with given fields: ctx, key

func (*Storage) List

func (_m *Storage) List(ctx context.Context, address common.Address) ([]*s4.SnapshotRow, error)

List provides a mock function with given fields: ctx, address

func (*Storage) Put

func (_m *Storage) Put(ctx context.Context, key *s4.Key, record *s4.Record, signature []byte) error

Put provides a mock function with given fields: ctx, key, record, signature

Jump to

Keyboard shortcuts

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