package mocks

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

Index

Types

type NewSystemT

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

type System

type System struct {
	mock.Mock
}

System is an autogenerated mock type for the System type

func NewSystem

func NewSystem(t NewSystemT) *System

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

func (*System) Chain

func (_m *System) Chain() (types.Text, error)

Chain provides a mock function with given fields:

func (*System) Health

func (_m *System) Health() (types.Health, error)

Health provides a mock function with given fields:

func (*System) Name

func (_m *System) Name() (types.Text, error)

Name provides a mock function with given fields:

func (*System) NetworkState

func (_m *System) NetworkState() (types.NetworkState, error)

NetworkState provides a mock function with given fields:

func (*System) Peers

func (_m *System) Peers() ([]types.PeerInfo, error)

Peers provides a mock function with given fields:

func (*System) Properties

func (_m *System) Properties() (types.ChainProperties, error)

Properties provides a mock function with given fields:

func (*System) Version

func (_m *System) Version() (types.Text, error)

Version provides a mock function with given fields:

Source Files

system.go

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

Tools for package owners.