mocks

package
v0.0.0-...-706d53e Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorRepository

type ActorRepository struct {
	mock.Mock
}

ActorRepository is an autogenerated mock type for the ActorRepository type

func NewActorRepository

func NewActorRepository(t mockConstructorTestingTNewActorRepository) *ActorRepository

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

func (*ActorRepository) Create

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

func (*ActorRepository) EXPECT

func (*ActorRepository) Get

func (_m *ActorRepository) Get(ctx context.Context, _a1 *url.URL) (*models.Actor, error)

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

type ActorRepository_Create_Call

type ActorRepository_Create_Call struct {
	*mock.Call
}

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

func (*ActorRepository_Create_Call) Return

func (*ActorRepository_Create_Call) Run

type ActorRepository_Expecter

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

func (*ActorRepository_Expecter) Create

func (_e *ActorRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ActorRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 repository.CreateActorRequest

func (*ActorRepository_Expecter) Get

func (_e *ActorRepository_Expecter) Get(ctx interface{}, _a1 interface{}) *ActorRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *url.URL

type ActorRepository_Get_Call

type ActorRepository_Get_Call struct {
	*mock.Call
}

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

func (*ActorRepository_Get_Call) Return

func (*ActorRepository_Get_Call) Run

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func NewUserRepository

func NewUserRepository(t mockConstructorTestingTNewUserRepository) *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.

func (*UserRepository) CreateUser

CreateUser provides a mock function with given fields: _a0, _a1

func (*UserRepository) EXPECT

func (*UserRepository) Follow

func (_m *UserRepository) Follow(_a0 context.Context, _a1 *models.User, _a2 *models.Actor) error

Follow provides a mock function with given fields: _a0, _a1, _a2

func (*UserRepository) Get

func (_m *UserRepository) Get(_a0 context.Context, _a1 string) (*models.User, error)

Get provides a mock function with given fields: _a0, _a1

func (*UserRepository) GetFollowers

func (_m *UserRepository) GetFollowers(_a0 context.Context, _a1 *models.User) (models.ActorSlice, error)

GetFollowers provides a mock function with given fields: _a0, _a1

func (*UserRepository) GetWithFollowers

func (_m *UserRepository) GetWithFollowers(ctx context.Context) (models.UserSlice, error)

GetWithFollowers provides a mock function with given fields: ctx

func (*UserRepository) UnFollow

func (_m *UserRepository) UnFollow(_a0 context.Context, _a1 *models.User, _a2 *models.Actor) error

UnFollow provides a mock function with given fields: _a0, _a1, _a2

type UserRepository_CreateUser_Call

type UserRepository_CreateUser_Call struct {
	*mock.Call
}

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

func (*UserRepository_CreateUser_Call) Return

func (*UserRepository_CreateUser_Call) Run

type UserRepository_Expecter

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

func (*UserRepository_Expecter) CreateUser

func (_e *UserRepository_Expecter) CreateUser(_a0 interface{}, _a1 interface{}) *UserRepository_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 repository.CreateUserRequest

func (*UserRepository_Expecter) Follow

func (_e *UserRepository_Expecter) Follow(_a0 interface{}, _a1 interface{}, _a2 interface{}) *UserRepository_Follow_Call

Follow is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *models.User
  • _a2 *models.Actor

func (*UserRepository_Expecter) Get

func (_e *UserRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *UserRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*UserRepository_Expecter) GetFollowers

func (_e *UserRepository_Expecter) GetFollowers(_a0 interface{}, _a1 interface{}) *UserRepository_GetFollowers_Call

GetFollowers is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *models.User

func (*UserRepository_Expecter) GetWithFollowers

func (_e *UserRepository_Expecter) GetWithFollowers(ctx interface{}) *UserRepository_GetWithFollowers_Call

GetWithFollowers is a helper method to define mock.On call

  • ctx context.Context

func (*UserRepository_Expecter) UnFollow

func (_e *UserRepository_Expecter) UnFollow(_a0 interface{}, _a1 interface{}, _a2 interface{}) *UserRepository_UnFollow_Call

UnFollow is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *models.User
  • _a2 *models.Actor

type UserRepository_Follow_Call

type UserRepository_Follow_Call struct {
	*mock.Call
}

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

func (*UserRepository_Follow_Call) Return

func (*UserRepository_Follow_Call) Run

type UserRepository_GetFollowers_Call

type UserRepository_GetFollowers_Call struct {
	*mock.Call
}

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

func (*UserRepository_GetFollowers_Call) Return

func (*UserRepository_GetFollowers_Call) Run

type UserRepository_GetWithFollowers_Call

type UserRepository_GetWithFollowers_Call struct {
	*mock.Call
}

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

func (*UserRepository_GetWithFollowers_Call) Return

func (*UserRepository_GetWithFollowers_Call) Run

type UserRepository_Get_Call

type UserRepository_Get_Call struct {
	*mock.Call
}

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

func (*UserRepository_Get_Call) Return

func (*UserRepository_Get_Call) Run

type UserRepository_UnFollow_Call

type UserRepository_UnFollow_Call struct {
	*mock.Call
}

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

func (*UserRepository_UnFollow_Call) Return

func (*UserRepository_UnFollow_Call) Run

Jump to

Keyboard shortcuts

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