mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.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 Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t mockConstructorTestingTNewService) *Service

NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Service) EXPECT

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) Save

func (_m *Service) Save(ctx context.Context, user users.User) error

Save provides a mock function with given fields: ctx, user

type Service_Expecter

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

func (*Service_Expecter) Save

func (_e *Service_Expecter) Save(ctx interface{}, user interface{}) *Service_Save_Call

Save is a helper method to define mock.On call

  • ctx context.Context
  • user users.User

type Service_Save_Call

type Service_Save_Call struct {
	*mock.Call
}

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

func (*Service_Save_Call) Return

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

func (*Service_Save_Call) Run

func (_c *Service_Save_Call) Run(run func(ctx context.Context, user users.User)) *Service_Save_Call

func (*Service_Save_Call) RunAndReturn

func (_c *Service_Save_Call) RunAndReturn(run func(context.Context, users.User) error) *Service_Save_Call

Jump to

Keyboard shortcuts

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