mocks

package
v1.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconClient

type BeaconClient struct {
	mock.Mock
}

BeaconClient is an autogenerated mock type for the BeaconClient type

func NewBeaconClient

func NewBeaconClient(t mockConstructorTestingTNewBeaconClient) *BeaconClient

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

func (*BeaconClient) BeaconBlobSideCars

func (_m *BeaconClient) BeaconBlobSideCars(ctx context.Context, fetchAllSidecars bool, slot uint64, hashes []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error)

BeaconBlobSideCars provides a mock function with given fields: ctx, fetchAllSidecars, slot, hashes

func (*BeaconClient) BeaconGenesis

func (_m *BeaconClient) BeaconGenesis(ctx context.Context) (eth.APIGenesisResponse, error)

BeaconGenesis provides a mock function with given fields: ctx

func (*BeaconClient) ConfigSpec

func (_m *BeaconClient) ConfigSpec(ctx context.Context) (eth.APIConfigResponse, error)

ConfigSpec provides a mock function with given fields: ctx

func (*BeaconClient) EXPECT

func (_m *BeaconClient) EXPECT() *BeaconClient_Expecter

func (*BeaconClient) NodeVersion

func (_m *BeaconClient) NodeVersion(ctx context.Context) (string, error)

NodeVersion provides a mock function with given fields: ctx

type BeaconClient_BeaconBlobSideCars_Call

type BeaconClient_BeaconBlobSideCars_Call struct {
	*mock.Call
}

BeaconClient_BeaconBlobSideCars_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeaconBlobSideCars'

func (*BeaconClient_BeaconBlobSideCars_Call) Return

func (*BeaconClient_BeaconBlobSideCars_Call) Run

type BeaconClient_BeaconGenesis_Call

type BeaconClient_BeaconGenesis_Call struct {
	*mock.Call
}

BeaconClient_BeaconGenesis_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeaconGenesis'

func (*BeaconClient_BeaconGenesis_Call) Return

func (*BeaconClient_BeaconGenesis_Call) Run

func (*BeaconClient_BeaconGenesis_Call) RunAndReturn

type BeaconClient_ConfigSpec_Call

type BeaconClient_ConfigSpec_Call struct {
	*mock.Call
}

BeaconClient_ConfigSpec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigSpec'

func (*BeaconClient_ConfigSpec_Call) Return

func (*BeaconClient_ConfigSpec_Call) Run

func (*BeaconClient_ConfigSpec_Call) RunAndReturn

type BeaconClient_Expecter

type BeaconClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*BeaconClient_Expecter) BeaconBlobSideCars

func (_e *BeaconClient_Expecter) BeaconBlobSideCars(ctx interface{}, fetchAllSidecars interface{}, slot interface{}, hashes interface{}) *BeaconClient_BeaconBlobSideCars_Call

BeaconBlobSideCars is a helper method to define mock.On call

  • ctx context.Context
  • fetchAllSidecars bool
  • slot uint64
  • hashes []eth.IndexedBlobHash

func (*BeaconClient_Expecter) BeaconGenesis

func (_e *BeaconClient_Expecter) BeaconGenesis(ctx interface{}) *BeaconClient_BeaconGenesis_Call

BeaconGenesis is a helper method to define mock.On call

  • ctx context.Context

func (*BeaconClient_Expecter) ConfigSpec

func (_e *BeaconClient_Expecter) ConfigSpec(ctx interface{}) *BeaconClient_ConfigSpec_Call

ConfigSpec is a helper method to define mock.On call

  • ctx context.Context

func (*BeaconClient_Expecter) NodeVersion

func (_e *BeaconClient_Expecter) NodeVersion(ctx interface{}) *BeaconClient_NodeVersion_Call

NodeVersion is a helper method to define mock.On call

  • ctx context.Context

type BeaconClient_NodeVersion_Call

type BeaconClient_NodeVersion_Call struct {
	*mock.Call
}

BeaconClient_NodeVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeVersion'

func (*BeaconClient_NodeVersion_Call) Return

func (*BeaconClient_NodeVersion_Call) Run

func (*BeaconClient_NodeVersion_Call) RunAndReturn

type BlobSideCarsFetcher

type BlobSideCarsFetcher struct {
	mock.Mock
}

BlobSideCarsFetcher is an autogenerated mock type for the BlobSideCarsFetcher type

func NewBlobSideCarsFetcher

func NewBlobSideCarsFetcher(t mockConstructorTestingTNewBlobSideCarsFetcher) *BlobSideCarsFetcher

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

func (*BlobSideCarsFetcher) BeaconBlobSideCars

func (_m *BlobSideCarsFetcher) BeaconBlobSideCars(ctx context.Context, fetchAllSidecars bool, slot uint64, hashes []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error)

BeaconBlobSideCars provides a mock function with given fields: ctx, fetchAllSidecars, slot, hashes

func (*BlobSideCarsFetcher) EXPECT

type BlobSideCarsFetcher_BeaconBlobSideCars_Call

type BlobSideCarsFetcher_BeaconBlobSideCars_Call struct {
	*mock.Call
}

BlobSideCarsFetcher_BeaconBlobSideCars_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeaconBlobSideCars'

func (*BlobSideCarsFetcher_BeaconBlobSideCars_Call) Return

func (*BlobSideCarsFetcher_BeaconBlobSideCars_Call) Run

type BlobSideCarsFetcher_Expecter

type BlobSideCarsFetcher_Expecter struct {
	// contains filtered or unexported fields
}

func (*BlobSideCarsFetcher_Expecter) BeaconBlobSideCars

func (_e *BlobSideCarsFetcher_Expecter) BeaconBlobSideCars(ctx interface{}, fetchAllSidecars interface{}, slot interface{}, hashes interface{}) *BlobSideCarsFetcher_BeaconBlobSideCars_Call

BeaconBlobSideCars is a helper method to define mock.On call

  • ctx context.Context
  • fetchAllSidecars bool
  • slot uint64
  • hashes []eth.IndexedBlobHash

Jump to

Keyboard shortcuts

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