mocks

package
v0.0.0-...-dfb12f3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the userRepository type

func NewUserRepository

func NewUserRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserRepository

NewUserRepository creates a new instance of UserRepository. 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 (*UserRepository) Create

func (_m *UserRepository) Create(ctx context.Context, _a1 *user.User) error

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

func (*UserRepository) Delete

func (_m *UserRepository) Delete(ctx context.Context, userId int) (int64, error)

Delete provides a mock function with given fields: ctx, userId

func (*UserRepository) GetAll

func (_m *UserRepository) GetAll(ctx context.Context) ([]user.User, error)

GetAll provides a mock function with given fields: ctx

func (*UserRepository) GetSegments

func (_m *UserRepository) GetSegments(ctx context.Context, userId int) ([]segment.Segment, error)

GetSegments provides a mock function with given fields: ctx, userId

Jump to

Keyboard shortcuts

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