mocks

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Node

func (_m *Client) Node() v1beta1.Node

Node provides a mock function with given fields:

func (*Client) Query

func (_m *Client) Query() v1beta1.Query

Query provides a mock function with given fields:

func (*Client) Tx

func (_m *Client) Tx() v1beta1.Tx

Tx provides a mock function with given fields:

type Client_Expecter

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

func (*Client_Expecter) Node

func (_e *Client_Expecter) Node() *Client_Node_Call

Node is a helper method to define mock.On call

func (*Client_Expecter) Query

func (_e *Client_Expecter) Query() *Client_Query_Call

Query is a helper method to define mock.On call

func (*Client_Expecter) Tx

func (_e *Client_Expecter) Tx() *Client_Tx_Call

Tx is a helper method to define mock.On call

type Client_Node_Call

type Client_Node_Call struct {
	*mock.Call
}

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

func (*Client_Node_Call) Return

func (_c *Client_Node_Call) Return(_a0 v1beta1.Node) *Client_Node_Call

func (*Client_Node_Call) Run

func (_c *Client_Node_Call) Run(run func()) *Client_Node_Call

func (*Client_Node_Call) RunAndReturn

func (_c *Client_Node_Call) RunAndReturn(run func() v1beta1.Node) *Client_Node_Call

type Client_Query_Call

type Client_Query_Call struct {
	*mock.Call
}

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

func (*Client_Query_Call) Return

func (*Client_Query_Call) Run

func (_c *Client_Query_Call) Run(run func()) *Client_Query_Call

func (*Client_Query_Call) RunAndReturn

func (_c *Client_Query_Call) RunAndReturn(run func() v1beta1.Query) *Client_Query_Call

type Client_Tx_Call

type Client_Tx_Call struct {
	*mock.Call
}

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

func (*Client_Tx_Call) Return

func (_c *Client_Tx_Call) Return(_a0 v1beta1.Tx) *Client_Tx_Call

func (*Client_Tx_Call) Run

func (_c *Client_Tx_Call) Run(run func()) *Client_Tx_Call

func (*Client_Tx_Call) RunAndReturn

func (_c *Client_Tx_Call) RunAndReturn(run func() v1beta1.Tx) *Client_Tx_Call

type Node

type Node struct {
	mock.Mock
}

Node is an autogenerated mock type for the Node type

func NewNode

func NewNode(t interface {
	mock.TestingT
	Cleanup(func())
}) *Node

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

func (_m *Node) EXPECT() *Node_Expecter

func (*Node) SyncInfo

func (_m *Node) SyncInfo(ctx context.Context) (*coretypes.SyncInfo, error)

SyncInfo provides a mock function with given fields: ctx

type Node_Expecter

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

func (*Node_Expecter) SyncInfo

func (_e *Node_Expecter) SyncInfo(ctx interface{}) *Node_SyncInfo_Call

SyncInfo is a helper method to define mock.On call

  • ctx context.Context

type Node_SyncInfo_Call

type Node_SyncInfo_Call struct {
	*mock.Call
}

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

func (*Node_SyncInfo_Call) Return

func (*Node_SyncInfo_Call) Run

func (_c *Node_SyncInfo_Call) Run(run func(ctx context.Context)) *Node_SyncInfo_Call

func (*Node_SyncInfo_Call) RunAndReturn

func (_c *Node_SyncInfo_Call) RunAndReturn(run func(context.Context) (*coretypes.SyncInfo, error)) *Node_SyncInfo_Call

type Query

type Query struct {
	mock.Mock
}

Query is an autogenerated mock type for the Query type

func NewQuery

func NewQuery(t interface {
	mock.TestingT
	Cleanup(func())
}) *Query

NewQuery creates a new instance of Query. 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 (*Query) AllProvidersAttributes

AllProvidersAttributes provides a mock function with given fields: ctx, in, opts

func (*Query) AuditorAttributes

AuditorAttributes provides a mock function with given fields: ctx, in, opts

func (*Query) Bid

Bid provides a mock function with given fields: ctx, in, opts

func (*Query) Bids

Bids provides a mock function with given fields: ctx, in, opts

func (*Query) Certificates

Certificates provides a mock function with given fields: ctx, in, opts

func (*Query) Deployment

Deployment provides a mock function with given fields: ctx, in, opts

func (*Query) Deployments

Deployments provides a mock function with given fields: ctx, in, opts

func (*Query) EXPECT

func (_m *Query) EXPECT() *Query_Expecter

func (*Query) Group

Group provides a mock function with given fields: ctx, in, opts

func (*Query) Lease

Lease provides a mock function with given fields: ctx, in, opts

func (*Query) Leases

Leases provides a mock function with given fields: ctx, in, opts

func (*Query) Order

Order provides a mock function with given fields: ctx, in, opts

func (*Query) Orders

Orders provides a mock function with given fields: ctx, in, opts

func (*Query) Provider

Provider provides a mock function with given fields: ctx, in, opts

func (*Query) ProviderAttributes

ProviderAttributes provides a mock function with given fields: ctx, in, opts

func (*Query) ProviderAuditorAttributes

func (_m *Query) ProviderAuditorAttributes(ctx context.Context, in *v1beta3.QueryProviderAuditorRequest, opts ...grpc.CallOption) (*v1beta3.QueryProvidersResponse, error)

ProviderAuditorAttributes provides a mock function with given fields: ctx, in, opts

func (*Query) Providers

Providers provides a mock function with given fields: ctx, in, opts

type Query_AllProvidersAttributes_Call

type Query_AllProvidersAttributes_Call struct {
	*mock.Call
}

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

func (*Query_AllProvidersAttributes_Call) Return

func (*Query_AllProvidersAttributes_Call) Run

type Query_AuditorAttributes_Call

type Query_AuditorAttributes_Call struct {
	*mock.Call
}

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

func (*Query_AuditorAttributes_Call) Return

func (*Query_AuditorAttributes_Call) Run

type Query_Bid_Call

type Query_Bid_Call struct {
	*mock.Call
}

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

func (*Query_Bid_Call) Return

func (*Query_Bid_Call) Run

type Query_Bids_Call

type Query_Bids_Call struct {
	*mock.Call
}

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

func (*Query_Bids_Call) Return

func (*Query_Bids_Call) Run

type Query_Certificates_Call

type Query_Certificates_Call struct {
	*mock.Call
}

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

func (*Query_Certificates_Call) Return

func (*Query_Certificates_Call) Run

type Query_Deployment_Call

type Query_Deployment_Call struct {
	*mock.Call
}

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

func (*Query_Deployment_Call) Return

func (*Query_Deployment_Call) Run

type Query_Deployments_Call

type Query_Deployments_Call struct {
	*mock.Call
}

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

func (*Query_Deployments_Call) Return

func (*Query_Deployments_Call) Run

type Query_Expecter

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

func (*Query_Expecter) AllProvidersAttributes

func (_e *Query_Expecter) AllProvidersAttributes(ctx interface{}, in interface{}, opts ...interface{}) *Query_AllProvidersAttributes_Call

AllProvidersAttributes is a helper method to define mock.On call

  • ctx context.Context
  • in *v1beta3.QueryAllProvidersAttributesRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) AuditorAttributes

func (_e *Query_Expecter) AuditorAttributes(ctx interface{}, in interface{}, opts ...interface{}) *Query_AuditorAttributes_Call

AuditorAttributes is a helper method to define mock.On call

  • ctx context.Context
  • in *v1beta3.QueryAuditorAttributesRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Bid

func (_e *Query_Expecter) Bid(ctx interface{}, in interface{}, opts ...interface{}) *Query_Bid_Call

Bid is a helper method to define mock.On call

  • ctx context.Context
  • in *marketv1beta3.QueryBidRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Bids

func (_e *Query_Expecter) Bids(ctx interface{}, in interface{}, opts ...interface{}) *Query_Bids_Call

Bids is a helper method to define mock.On call

  • ctx context.Context
  • in *marketv1beta3.QueryBidsRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Certificates

func (_e *Query_Expecter) Certificates(ctx interface{}, in interface{}, opts ...interface{}) *Query_Certificates_Call

Certificates is a helper method to define mock.On call

  • ctx context.Context
  • in *certv1beta3.QueryCertificatesRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Deployment

func (_e *Query_Expecter) Deployment(ctx interface{}, in interface{}, opts ...interface{}) *Query_Deployment_Call

Deployment is a helper method to define mock.On call

  • ctx context.Context
  • in *deploymentv1beta3.QueryDeploymentRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Deployments

func (_e *Query_Expecter) Deployments(ctx interface{}, in interface{}, opts ...interface{}) *Query_Deployments_Call

Deployments is a helper method to define mock.On call

  • ctx context.Context
  • in *deploymentv1beta3.QueryDeploymentsRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Group

func (_e *Query_Expecter) Group(ctx interface{}, in interface{}, opts ...interface{}) *Query_Group_Call

Group is a helper method to define mock.On call

  • ctx context.Context
  • in *deploymentv1beta3.QueryGroupRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Lease

func (_e *Query_Expecter) Lease(ctx interface{}, in interface{}, opts ...interface{}) *Query_Lease_Call

Lease is a helper method to define mock.On call

  • ctx context.Context
  • in *marketv1beta3.QueryLeaseRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Leases

func (_e *Query_Expecter) Leases(ctx interface{}, in interface{}, opts ...interface{}) *Query_Leases_Call

Leases is a helper method to define mock.On call

  • ctx context.Context
  • in *marketv1beta3.QueryLeasesRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Order

func (_e *Query_Expecter) Order(ctx interface{}, in interface{}, opts ...interface{}) *Query_Order_Call

Order is a helper method to define mock.On call

  • ctx context.Context
  • in *marketv1beta3.QueryOrderRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Orders

func (_e *Query_Expecter) Orders(ctx interface{}, in interface{}, opts ...interface{}) *Query_Orders_Call

Orders is a helper method to define mock.On call

  • ctx context.Context
  • in *marketv1beta3.QueryOrdersRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Provider

func (_e *Query_Expecter) Provider(ctx interface{}, in interface{}, opts ...interface{}) *Query_Provider_Call

Provider is a helper method to define mock.On call

  • ctx context.Context
  • in *providerv1beta3.QueryProviderRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) ProviderAttributes

func (_e *Query_Expecter) ProviderAttributes(ctx interface{}, in interface{}, opts ...interface{}) *Query_ProviderAttributes_Call

ProviderAttributes is a helper method to define mock.On call

  • ctx context.Context
  • in *v1beta3.QueryProviderAttributesRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) ProviderAuditorAttributes

func (_e *Query_Expecter) ProviderAuditorAttributes(ctx interface{}, in interface{}, opts ...interface{}) *Query_ProviderAuditorAttributes_Call

ProviderAuditorAttributes is a helper method to define mock.On call

  • ctx context.Context
  • in *v1beta3.QueryProviderAuditorRequest
  • opts ...grpc.CallOption

func (*Query_Expecter) Providers

func (_e *Query_Expecter) Providers(ctx interface{}, in interface{}, opts ...interface{}) *Query_Providers_Call

Providers is a helper method to define mock.On call

  • ctx context.Context
  • in *providerv1beta3.QueryProvidersRequest
  • opts ...grpc.CallOption

type Query_Group_Call

type Query_Group_Call struct {
	*mock.Call
}

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

func (*Query_Group_Call) Return

func (*Query_Group_Call) Run

type Query_Lease_Call

type Query_Lease_Call struct {
	*mock.Call
}

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

func (*Query_Lease_Call) Return

func (*Query_Lease_Call) Run

type Query_Leases_Call

type Query_Leases_Call struct {
	*mock.Call
}

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

func (*Query_Leases_Call) Return

func (*Query_Leases_Call) Run

type Query_Order_Call

type Query_Order_Call struct {
	*mock.Call
}

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

func (*Query_Order_Call) Return

func (*Query_Order_Call) Run

type Query_Orders_Call

type Query_Orders_Call struct {
	*mock.Call
}

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

func (*Query_Orders_Call) Return

func (*Query_Orders_Call) Run

type Query_ProviderAttributes_Call

type Query_ProviderAttributes_Call struct {
	*mock.Call
}

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

func (*Query_ProviderAttributes_Call) Return

func (*Query_ProviderAttributes_Call) Run

type Query_ProviderAuditorAttributes_Call

type Query_ProviderAuditorAttributes_Call struct {
	*mock.Call
}

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

func (*Query_ProviderAuditorAttributes_Call) Return

func (*Query_ProviderAuditorAttributes_Call) Run

type Query_Provider_Call

type Query_Provider_Call struct {
	*mock.Call
}

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

func (*Query_Provider_Call) Return

func (*Query_Provider_Call) Run

type Query_Providers_Call

type Query_Providers_Call struct {
	*mock.Call
}

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

func (*Query_Providers_Call) Return

func (*Query_Providers_Call) Run

type Tx

type Tx struct {
	mock.Mock
}

Tx is an autogenerated mock type for the Tx type

func NewTx

func NewTx(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tx

NewTx creates a new instance of Tx. 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 (*Tx) Broadcast

func (_m *Tx) Broadcast(_a0 context.Context, _a1 ...types.Msg) error

Broadcast provides a mock function with given fields: _a0, _a1

func (*Tx) EXPECT

func (_m *Tx) EXPECT() *Tx_Expecter

type Tx_Broadcast_Call

type Tx_Broadcast_Call struct {
	*mock.Call
}

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

func (*Tx_Broadcast_Call) Return

func (_c *Tx_Broadcast_Call) Return(_a0 error) *Tx_Broadcast_Call

func (*Tx_Broadcast_Call) Run

func (_c *Tx_Broadcast_Call) Run(run func(_a0 context.Context, _a1 ...types.Msg)) *Tx_Broadcast_Call

func (*Tx_Broadcast_Call) RunAndReturn

func (_c *Tx_Broadcast_Call) RunAndReturn(run func(context.Context, ...types.Msg) error) *Tx_Broadcast_Call

type Tx_Expecter

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

func (*Tx_Expecter) Broadcast

func (_e *Tx_Expecter) Broadcast(_a0 interface{}, _a1 ...interface{}) *Tx_Broadcast_Call

Broadcast is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 ...types.Msg

Jump to

Keyboard shortcuts

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