package mocks

import "github.com/centrifuge/go-substrate-rpc-client/v4/rpc/offchain/mocks"

Index

Types

type NewOffchainT

type NewOffchainT interface {
	mock.TestingT
	Cleanup(func())
}

type Offchain

type Offchain struct {
	mock.Mock
}

Offchain is an autogenerated mock type for the Offchain type

func NewOffchain

func NewOffchain(t NewOffchainT) *Offchain

NewOffchain creates a new instance of Offchain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Offchain) LocalStorageGet

func (_m *Offchain) LocalStorageGet(kind offchain.StorageKind, key []byte) (*types.StorageDataRaw, error)

LocalStorageGet provides a mock function with given fields: kind, key

func (*Offchain) LocalStorageSet

func (_m *Offchain) LocalStorageSet(kind offchain.StorageKind, key []byte, value []byte) error

LocalStorageSet provides a mock function with given fields: kind, key, value

Source Files

offchain.go

Version
v4.2.1 (latest)
Published
Dec 5, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
3 weeks ago

Tools for package owners.