mocks

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	mock.Mock
}

Checker is an autogenerated mock type for the Checker type

func NewChecker

func NewChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Checker

NewChecker creates a new instance of Checker. 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 (*Checker) Check

func (_m *Checker) Check(ctx context.Context, gatewayID ids.ID[ids.GatewayKind]) error

Check provides a mock function with given fields: ctx, gatewayID

func (*Checker) EXPECT

func (_m *Checker) EXPECT() *Checker_Expecter

type Checker_Check_Call

type Checker_Check_Call struct {
	*mock.Call
}

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

func (*Checker_Check_Call) Return

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

func (*Checker_Check_Call) Run

func (_c *Checker_Check_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *Checker_Check_Call

func (*Checker_Check_Call) RunAndReturn

type Checker_Expecter

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

func (*Checker_Expecter) Check

func (_e *Checker_Expecter) Check(ctx interface{}, gatewayID interface{}) *Checker_Check_Call

Check is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]

type Counter

type Counter struct {
	mock.Mock
}

Counter is an autogenerated mock type for the Counter type

func NewCounter

func NewCounter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Counter

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

func (_m *Counter) EXPECT() *Counter_Expecter

func (*Counter) IncrBurst

func (_m *Counter) IncrBurst(ctx context.Context, gatewayID ids.ID[ids.GatewayKind]) (int64, time.Duration, error)

IncrBurst provides a mock function with given fields: ctx, gatewayID

func (*Counter) IncrQuota

func (_m *Counter) IncrQuota(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], month string) (int64, error)

IncrQuota provides a mock function with given fields: ctx, gatewayID, month

type Counter_Expecter

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

func (*Counter_Expecter) IncrBurst

func (_e *Counter_Expecter) IncrBurst(ctx interface{}, gatewayID interface{}) *Counter_IncrBurst_Call

IncrBurst is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]

func (*Counter_Expecter) IncrQuota

func (_e *Counter_Expecter) IncrQuota(ctx interface{}, gatewayID interface{}, month interface{}) *Counter_IncrQuota_Call

IncrQuota is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]
  • month string

type Counter_IncrBurst_Call

type Counter_IncrBurst_Call struct {
	*mock.Call
}

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

func (*Counter_IncrBurst_Call) Return

func (*Counter_IncrBurst_Call) Run

func (_c *Counter_IncrBurst_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *Counter_IncrBurst_Call

func (*Counter_IncrBurst_Call) RunAndReturn

type Counter_IncrQuota_Call

type Counter_IncrQuota_Call struct {
	*mock.Call
}

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

func (*Counter_IncrQuota_Call) Return

func (_c *Counter_IncrQuota_Call) Return(count int64, err error) *Counter_IncrQuota_Call

func (*Counter_IncrQuota_Call) Run

func (_c *Counter_IncrQuota_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], month string)) *Counter_IncrQuota_Call

func (*Counter_IncrQuota_Call) RunAndReturn

type GatewayTierLoader

type GatewayTierLoader struct {
	mock.Mock
}

GatewayTierLoader is an autogenerated mock type for the GatewayTierLoader type

func NewGatewayTierLoader

func NewGatewayTierLoader(t interface {
	mock.TestingT
	Cleanup(func())
}) *GatewayTierLoader

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

func (*GatewayTierLoader) Tier

func (_m *GatewayTierLoader) Tier(ctx context.Context, gatewayID ids.ID[ids.GatewayKind]) (string, error)

Tier provides a mock function with given fields: ctx, gatewayID

type GatewayTierLoader_Expecter

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

func (*GatewayTierLoader_Expecter) Tier

func (_e *GatewayTierLoader_Expecter) Tier(ctx interface{}, gatewayID interface{}) *GatewayTierLoader_Tier_Call

Tier is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID ids.ID[ids.GatewayKind]

type GatewayTierLoader_Tier_Call

type GatewayTierLoader_Tier_Call struct {
	*mock.Call
}

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

func (*GatewayTierLoader_Tier_Call) Return

func (*GatewayTierLoader_Tier_Call) Run

func (*GatewayTierLoader_Tier_Call) RunAndReturn

Jump to

Keyboard shortcuts

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