mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusService

type ConsensusService struct {
	mock.Mock
}

ConsensusService is an autogenerated mock type for the ConsensusService type

func NewConsensusService

func NewConsensusService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConsensusService

NewConsensusService creates a new instance of ConsensusService. 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 (*ConsensusService) ConsensusStatus

ConsensusStatus provides a mock function with given fields: ctx, opts

func (*ConsensusService) EXPECT

type ConsensusService_ConsensusStatus_Call

type ConsensusService_ConsensusStatus_Call struct {
	*mock.Call
}

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

func (*ConsensusService_ConsensusStatus_Call) Return

func (*ConsensusService_ConsensusStatus_Call) Run

func (*ConsensusService_ConsensusStatus_Call) RunAndReturn added in v1.2.5

type ConsensusService_Expecter

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

func (*ConsensusService_Expecter) ConsensusStatus

func (_e *ConsensusService_Expecter) ConsensusStatus(ctx interface{}, opts interface{}) *ConsensusService_ConsensusStatus_Call

ConsensusStatus is a helper method to define mock.On call

  • ctx context.Context
  • opts api.ConsensusStatusOptions

type EventService

type EventService struct {
	mock.Mock
}

EventService is an autogenerated mock type for the EventService type

func NewEventService

func NewEventService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventService

NewEventService creates a new instance of EventService. 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 (*EventService) EXPECT

func (_m *EventService) EXPECT() *EventService_Expecter

func (*EventService) Subscribe

func (_m *EventService) Subscribe(ctx context.Context, opts api.SubscribeOptions) (<-chan api.Event, error)

Subscribe provides a mock function with given fields: ctx, opts

type EventService_Expecter

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

func (*EventService_Expecter) Subscribe

func (_e *EventService_Expecter) Subscribe(ctx interface{}, opts interface{}) *EventService_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • ctx context.Context
  • opts api.SubscribeOptions

type EventService_Subscribe_Call

type EventService_Subscribe_Call struct {
	*mock.Call
}

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

func (*EventService_Subscribe_Call) Return

func (*EventService_Subscribe_Call) Run

func (*EventService_Subscribe_Call) RunAndReturn added in v1.2.5

type MetricsService

type MetricsService struct {
	mock.Mock
}

MetricsService is an autogenerated mock type for the MetricsService type

func NewMetricsService

func NewMetricsService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetricsService

NewMetricsService creates a new instance of MetricsService. 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 (*MetricsService) EXPECT

func (*MetricsService) Metrics

func (_m *MetricsService) Metrics(ctx context.Context, opts api.MetricsOptions) (*api.Metrics, error)

Metrics provides a mock function with given fields: ctx, opts

type MetricsService_Expecter

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

func (*MetricsService_Expecter) Metrics

func (_e *MetricsService_Expecter) Metrics(ctx interface{}, opts interface{}) *MetricsService_Metrics_Call

Metrics is a helper method to define mock.On call

  • ctx context.Context
  • opts api.MetricsOptions

type MetricsService_Metrics_Call

type MetricsService_Metrics_Call struct {
	*mock.Call
}

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

func (*MetricsService_Metrics_Call) Return

func (*MetricsService_Metrics_Call) Run

func (*MetricsService_Metrics_Call) RunAndReturn added in v1.2.5

type NetworkService

type NetworkService struct {
	mock.Mock
}

NetworkService is an autogenerated mock type for the NetworkService type

func NewNetworkService

func NewNetworkService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NetworkService

NewNetworkService creates a new instance of NetworkService. 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 (*NetworkService) EXPECT

func (*NetworkService) NetworkStatus

func (_m *NetworkService) NetworkStatus(ctx context.Context, opts api.NetworkStatusOptions) (*api.NetworkStatus, error)

NetworkStatus provides a mock function with given fields: ctx, opts

type NetworkService_Expecter

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

func (*NetworkService_Expecter) NetworkStatus

func (_e *NetworkService_Expecter) NetworkStatus(ctx interface{}, opts interface{}) *NetworkService_NetworkStatus_Call

NetworkStatus is a helper method to define mock.On call

  • ctx context.Context
  • opts api.NetworkStatusOptions

type NetworkService_NetworkStatus_Call

type NetworkService_NetworkStatus_Call struct {
	*mock.Call
}

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

func (*NetworkService_NetworkStatus_Call) Return

func (*NetworkService_NetworkStatus_Call) Run

func (*NetworkService_NetworkStatus_Call) RunAndReturn added in v1.2.5

type NodeService added in v1.2.10

type NodeService struct {
	mock.Mock
}

NodeService is an autogenerated mock type for the NodeService type

func NewNodeService added in v1.2.10

func NewNodeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeService

NewNodeService creates a new instance of NodeService. 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 (*NodeService) EXPECT added in v1.2.10

func (_m *NodeService) EXPECT() *NodeService_Expecter

func (*NodeService) FindService added in v1.2.10

func (_m *NodeService) FindService(ctx context.Context, opts api.FindServiceOptions) ([]*api.FindServiceResult, error)

FindService provides a mock function with given fields: ctx, opts

func (*NodeService) NodeInfo added in v1.2.10

func (_m *NodeService) NodeInfo(ctx context.Context, opts api.NodeInfoOptions) (*api.NodeInfo, error)

NodeInfo provides a mock function with given fields: ctx, opts

type NodeService_Expecter added in v1.2.10

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

func (*NodeService_Expecter) FindService added in v1.2.10

func (_e *NodeService_Expecter) FindService(ctx interface{}, opts interface{}) *NodeService_FindService_Call

FindService is a helper method to define mock.On call

  • ctx context.Context
  • opts api.FindServiceOptions

func (*NodeService_Expecter) NodeInfo added in v1.2.10

func (_e *NodeService_Expecter) NodeInfo(ctx interface{}, opts interface{}) *NodeService_NodeInfo_Call

NodeInfo is a helper method to define mock.On call

  • ctx context.Context
  • opts api.NodeInfoOptions

type NodeService_FindService_Call added in v1.2.10

type NodeService_FindService_Call struct {
	*mock.Call
}

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

func (*NodeService_FindService_Call) Return added in v1.2.10

func (*NodeService_FindService_Call) Run added in v1.2.10

func (*NodeService_FindService_Call) RunAndReturn added in v1.2.10

type NodeService_NodeInfo_Call added in v1.2.10

type NodeService_NodeInfo_Call struct {
	*mock.Call
}

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

func (*NodeService_NodeInfo_Call) Return added in v1.2.10

func (*NodeService_NodeInfo_Call) Run added in v1.2.10

func (*NodeService_NodeInfo_Call) RunAndReturn added in v1.2.10

type Querier

type Querier struct {
	mock.Mock
}

Querier is an autogenerated mock type for the Querier type

func NewQuerier

func NewQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Querier

NewQuerier creates a new instance of Querier. 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 (*Querier) EXPECT

func (_m *Querier) EXPECT() *Querier_Expecter

func (*Querier) Query

func (_m *Querier) Query(ctx context.Context, scope *url.URL, query api.Query) (api.Record, error)

Query provides a mock function with given fields: ctx, scope, query

type Querier_Expecter

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

func (*Querier_Expecter) Query

func (_e *Querier_Expecter) Query(ctx interface{}, scope interface{}, query interface{}) *Querier_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • scope *url.URL
  • query api.Query

type Querier_Query_Call

type Querier_Query_Call struct {
	*mock.Call
}

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

func (*Querier_Query_Call) Return

func (_c *Querier_Query_Call) Return(_a0 api.Record, _a1 error) *Querier_Query_Call

func (*Querier_Query_Call) Run

func (_c *Querier_Query_Call) Run(run func(ctx context.Context, scope *url.URL, query api.Query)) *Querier_Query_Call

func (*Querier_Query_Call) RunAndReturn added in v1.2.5

func (_c *Querier_Query_Call) RunAndReturn(run func(context.Context, *url.URL, api.Query) (api.Record, error)) *Querier_Query_Call

type Submitter

type Submitter struct {
	mock.Mock
}

Submitter is an autogenerated mock type for the Submitter type

func NewSubmitter

func NewSubmitter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Submitter

NewSubmitter creates a new instance of Submitter. 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 (*Submitter) EXPECT

func (_m *Submitter) EXPECT() *Submitter_Expecter

func (*Submitter) Submit

func (_m *Submitter) Submit(ctx context.Context, envelope *messaging.Envelope, opts api.SubmitOptions) ([]*api.Submission, error)

Submit provides a mock function with given fields: ctx, envelope, opts

type Submitter_Expecter

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

func (*Submitter_Expecter) Submit

func (_e *Submitter_Expecter) Submit(ctx interface{}, envelope interface{}, opts interface{}) *Submitter_Submit_Call

Submit is a helper method to define mock.On call

  • ctx context.Context
  • envelope *messaging.Envelope
  • opts api.SubmitOptions

type Submitter_Submit_Call

type Submitter_Submit_Call struct {
	*mock.Call
}

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

func (*Submitter_Submit_Call) Return

func (*Submitter_Submit_Call) Run

func (*Submitter_Submit_Call) RunAndReturn added in v1.2.5

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator

func NewValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Validator

NewValidator creates a new instance of Validator. 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 (*Validator) EXPECT

func (_m *Validator) EXPECT() *Validator_Expecter

func (*Validator) Validate

func (_m *Validator) Validate(ctx context.Context, envelope *messaging.Envelope, opts api.ValidateOptions) ([]*api.Submission, error)

Validate provides a mock function with given fields: ctx, envelope, opts

type Validator_Expecter

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

func (*Validator_Expecter) Validate

func (_e *Validator_Expecter) Validate(ctx interface{}, envelope interface{}, opts interface{}) *Validator_Validate_Call

Validate is a helper method to define mock.On call

  • ctx context.Context
  • envelope *messaging.Envelope
  • opts api.ValidateOptions

type Validator_Validate_Call

type Validator_Validate_Call struct {
	*mock.Call
}

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

func (*Validator_Validate_Call) Return

func (*Validator_Validate_Call) Run

func (*Validator_Validate_Call) RunAndReturn added in v1.2.5

Jump to

Keyboard shortcuts

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