mocks

package
v1.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 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 mockConstructorTestingTNewConsensusService) *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.

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

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 mockConstructorTestingTNewEventService) *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.

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

type MetricsService

type MetricsService struct {
	mock.Mock
}

MetricsService is an autogenerated mock type for the MetricsService type

func NewMetricsService

func NewMetricsService(t mockConstructorTestingTNewMetricsService) *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.

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

type NetworkService

type NetworkService struct {
	mock.Mock
}

NetworkService is an autogenerated mock type for the NetworkService type

func NewNetworkService

func NewNetworkService(t mockConstructorTestingTNewNetworkService) *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.

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

type Querier

type Querier struct {
	mock.Mock
}

Querier is an autogenerated mock type for the Querier type

func NewQuerier

func NewQuerier(t mockConstructorTestingTNewQuerier) *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.

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

type Submitter

type Submitter struct {
	mock.Mock
}

Submitter is an autogenerated mock type for the Submitter type

func NewSubmitter

func NewSubmitter(t mockConstructorTestingTNewSubmitter) *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.

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

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator

func NewValidator(t mockConstructorTestingTNewValidator) *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.

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

Jump to

Keyboard shortcuts

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