mocks

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 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 Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

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

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Get

func (_m *Repository) Get(ctx context.Context, gatewayID string, sessionID string) (*session.Session, error)

Get provides a mock function with given fields: ctx, gatewayID, sessionID

func (*Repository) Save

func (_m *Repository) Save(ctx context.Context, _a1 *session.Session) error

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

type Repository_Expecter

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

func (*Repository_Expecter) Get

func (_e *Repository_Expecter) Get(ctx interface{}, gatewayID interface{}, sessionID interface{}) *Repository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • gatewayID string
  • sessionID string

func (*Repository_Expecter) Save

func (_e *Repository_Expecter) Save(ctx interface{}, _a1 interface{}) *Repository_Save_Call

Save is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *session.Session

type Repository_Get_Call

type Repository_Get_Call struct {
	*mock.Call
}

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

func (*Repository_Get_Call) Return

func (*Repository_Get_Call) Run

func (_c *Repository_Get_Call) Run(run func(ctx context.Context, gatewayID string, sessionID string)) *Repository_Get_Call

func (*Repository_Get_Call) RunAndReturn

type Repository_Save_Call

type Repository_Save_Call struct {
	*mock.Call
}

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

func (*Repository_Save_Call) Return

func (*Repository_Save_Call) Run

func (*Repository_Save_Call) RunAndReturn

Jump to

Keyboard shortcuts

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