mocks

package
v2.12.1-starknet-20240802 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 6 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(ctx context.Context, limit uint, utcNow time.Time) (int64, error)

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

func (*ORM) Get

func (_m *ORM) Get(ctx context.Context, address *big.Big, slotId uint) (*s4.Row, error)

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

func (*ORM) GetSnapshot

func (_m *ORM) GetSnapshot(ctx context.Context, addressRange *s4.AddressRange) ([]*s4.SnapshotRow, error)

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

func (*ORM) GetUnconfirmedRows

func (_m *ORM) GetUnconfirmedRows(ctx context.Context, limit uint) ([]*s4.Row, error)

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

func (*ORM) Update

func (_m *ORM) Update(ctx context.Context, row *s4.Row) error

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

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