mocks

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: GPL-3.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 IRepo

type IRepo struct {
	mock.Mock
}

IRepo is an autogenerated mock type for the IRepo type

func (*IRepo) AddMembers

func (_m *IRepo) AddMembers(ctx contextx.Contextx, id int64, newUsers []*user.Member) (*event.Activity, error)

AddMembers provides a mock function with given fields: ctx, id, newUsers

func (*IRepo) Count

func (_m *IRepo) Count(ctx contextx.Contextx, userID int64) (int, error)

Count provides a mock function with given fields: ctx, userID

func (*IRepo) Create

func (_m *IRepo) Create(ctx contextx.Contextx, created *event.Activity) (*event.Activity, error)

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

func (*IRepo) Delete

func (_m *IRepo) Delete(ctx contextx.Contextx, id int64, userID int64) error

Delete provides a mock function with given fields: ctx, id, userID

func (*IRepo) GetByEmails added in v0.1.2

func (_m *IRepo) GetByEmails(ctx contextx.Contextx, emails []string) ([]*user.Member, error)

GetByEmails provides a mock function with given fields: ctx, emails

func (*IRepo) GetByID

func (_m *IRepo) GetByID(ctx contextx.Contextx, id int64, userID int64) (*event.Activity, error)

GetByID provides a mock function with given fields: ctx, id, userID

func (*IRepo) List

func (_m *IRepo) List(ctx contextx.Contextx, userID int64, limit int, offset int) ([]*event.Activity, error)

List provides a mock function with given fields: ctx, userID, limit, offset

func (*IRepo) Update

func (_m *IRepo) Update(ctx contextx.Contextx, updated *event.Activity) (*event.Activity, error)

Update provides a mock function with given fields: ctx, updated

Jump to

Keyboard shortcuts

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