package mocks

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

Index

Types

type Author

type Author struct {
	mock.Mock
}

Author is an autogenerated mock type for the Author type

func NewAuthor

func NewAuthor(t NewAuthorT) *Author

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

func (*Author) PendingExtrinsics

func (_m *Author) PendingExtrinsics() ([]types.Extrinsic, error)

PendingExtrinsics provides a mock function with given fields:

func (*Author) SubmitAndWatchExtrinsic

func (_m *Author) SubmitAndWatchExtrinsic(xt types.Extrinsic) (*author.ExtrinsicStatusSubscription, error)

SubmitAndWatchExtrinsic provides a mock function with given fields: xt

func (*Author) SubmitExtrinsic

func (_m *Author) SubmitExtrinsic(xt types.Extrinsic) (types.Hash, error)

SubmitExtrinsic provides a mock function with given fields: xt

type NewAuthorT

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

Source Files

author.go

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

Tools for package owners.