mocks

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationService

type NotificationService struct {
	mock.Mock
}

NotificationService is an autogenerated mock type for the NotificationService type

func NewNotificationService

func NewNotificationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationService

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

func (*NotificationService) RemoveIdempotencies

func (_m *NotificationService) RemoveIdempotencies(ctx context.Context, TTL time.Duration) error

RemoveIdempotencies provides a mock function with given fields: ctx, TTL

type NotificationService_Expecter

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

func (*NotificationService_Expecter) RemoveIdempotencies

func (_e *NotificationService_Expecter) RemoveIdempotencies(ctx interface{}, TTL interface{}) *NotificationService_RemoveIdempotencies_Call

RemoveIdempotencies is a helper method to define mock.On call

  • ctx context.Context
  • TTL time.Duration

type NotificationService_RemoveIdempotencies_Call

type NotificationService_RemoveIdempotencies_Call struct {
	*mock.Call
}

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

func (*NotificationService_RemoveIdempotencies_Call) Return

func (*NotificationService_RemoveIdempotencies_Call) Run

func (*NotificationService_RemoveIdempotencies_Call) RunAndReturn added in v0.6.1

Jump to

Keyboard shortcuts

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