mocks

package
v0.0.0-...-ff237a8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerDef

type HandlerDef struct {
	mock.Mock
}

HandlerDef is an autogenerated mock type for the HandlerDef type

func NewHandlerDef

func NewHandlerDef(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerDef

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

func (_m *HandlerDef) EXPECT() *HandlerDef_Expecter

func (*HandlerDef) Graphql

func (_m *HandlerDef) Graphql(repo interface{}) gin.HandlerFunc

Graphql provides a mock function with given fields: repo

func (*HandlerDef) Playground

func (_m *HandlerDef) Playground() gin.HandlerFunc

Playground provides a mock function with given fields:

func (*HandlerDef) SomeWebhookHandler

func (_m *HandlerDef) SomeWebhookHandler(c *gin.Context, e types.IWorker)

SomeWebhookHandler provides a mock function with given fields: c, e

type HandlerDef_Expecter

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

func (*HandlerDef_Expecter) Graphql

func (_e *HandlerDef_Expecter) Graphql(repo interface{}) *HandlerDef_Graphql_Call

Graphql is a helper method to define mock.On call

  • repo interface{}

func (*HandlerDef_Expecter) Playground

Playground is a helper method to define mock.On call

func (*HandlerDef_Expecter) SomeWebhookHandler

func (_e *HandlerDef_Expecter) SomeWebhookHandler(c interface{}, e interface{}) *HandlerDef_SomeWebhookHandler_Call

SomeWebhookHandler is a helper method to define mock.On call

  • c *gin.Context
  • e types.IWorker

type HandlerDef_Graphql_Call

type HandlerDef_Graphql_Call struct {
	*mock.Call
}

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

func (*HandlerDef_Graphql_Call) Return

func (*HandlerDef_Graphql_Call) Run

func (_c *HandlerDef_Graphql_Call) Run(run func(repo interface{})) *HandlerDef_Graphql_Call

func (*HandlerDef_Graphql_Call) RunAndReturn

func (_c *HandlerDef_Graphql_Call) RunAndReturn(run func(interface{}) gin.HandlerFunc) *HandlerDef_Graphql_Call

type HandlerDef_Playground_Call

type HandlerDef_Playground_Call struct {
	*mock.Call
}

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

func (*HandlerDef_Playground_Call) Return

func (*HandlerDef_Playground_Call) Run

func (*HandlerDef_Playground_Call) RunAndReturn

type HandlerDef_SomeWebhookHandler_Call

type HandlerDef_SomeWebhookHandler_Call struct {
	*mock.Call
}

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

func (*HandlerDef_SomeWebhookHandler_Call) Return

func (*HandlerDef_SomeWebhookHandler_Call) Run

func (*HandlerDef_SomeWebhookHandler_Call) RunAndReturn

type IAuth

type IAuth struct {
	mock.Mock
}

IAuth is an autogenerated mock type for the IAuth type

func NewIAuth

func NewIAuth(t interface {
	mock.TestingT
	Cleanup(func())
}) *IAuth

NewIAuth creates a new instance of IAuth. 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 (*IAuth) CurrentUser

func (_m *IAuth) CurrentUser(ctx context.Context) (*types.User, error)

CurrentUser provides a mock function with given fields: ctx

func (*IAuth) EXPECT

func (_m *IAuth) EXPECT() *IAuth_Expecter

func (*IAuth) GenerateToken

func (_m *IAuth) GenerateToken(ctx context.Context, email string, duration time.Duration) (string, error)

GenerateToken provides a mock function with given fields: ctx, email, duration

func (*IAuth) Login

func (_m *IAuth) Login(ctx context.Context, li types.LoginInput) (*types.JWT, error)

Login provides a mock function with given fields: ctx, li

func (*IAuth) RefreshToken

func (_m *IAuth) RefreshToken(ctx context.Context, jwt types.JWT) (*types.JWT, error)

RefreshToken provides a mock function with given fields: ctx, jwt

func (*IAuth) SetCurrentUser

func (_m *IAuth) SetCurrentUser(ctx context.Context, user *types.User) context.Context

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

func (*IAuth) Signup

func (_m *IAuth) Signup(ctx context.Context, newuser types.User, password string) (*types.JWT, error)

Signup provides a mock function with given fields: ctx, newuser, password

func (*IAuth) ValidateToken

func (_m *IAuth) ValidateToken(ctx context.Context, tokenStr string) (*types.Claims, error)

ValidateToken provides a mock function with given fields: ctx, tokenStr

type IAuth_CurrentUser_Call

type IAuth_CurrentUser_Call struct {
	*mock.Call
}

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

func (*IAuth_CurrentUser_Call) Return

func (*IAuth_CurrentUser_Call) Run

func (*IAuth_CurrentUser_Call) RunAndReturn

func (_c *IAuth_CurrentUser_Call) RunAndReturn(run func(context.Context) (*types.User, error)) *IAuth_CurrentUser_Call

type IAuth_Expecter

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

func (*IAuth_Expecter) CurrentUser

func (_e *IAuth_Expecter) CurrentUser(ctx interface{}) *IAuth_CurrentUser_Call

CurrentUser is a helper method to define mock.On call

  • ctx context.Context

func (*IAuth_Expecter) GenerateToken

func (_e *IAuth_Expecter) GenerateToken(ctx interface{}, email interface{}, duration interface{}) *IAuth_GenerateToken_Call

GenerateToken is a helper method to define mock.On call

  • ctx context.Context
  • email string
  • duration time.Duration

func (*IAuth_Expecter) Login

func (_e *IAuth_Expecter) Login(ctx interface{}, li interface{}) *IAuth_Login_Call

Login is a helper method to define mock.On call

  • ctx context.Context
  • li types.LoginInput

func (*IAuth_Expecter) RefreshToken

func (_e *IAuth_Expecter) RefreshToken(ctx interface{}, jwt interface{}) *IAuth_RefreshToken_Call

RefreshToken is a helper method to define mock.On call

  • ctx context.Context
  • jwt types.JWT

func (*IAuth_Expecter) SetCurrentUser

func (_e *IAuth_Expecter) SetCurrentUser(ctx interface{}, user interface{}) *IAuth_SetCurrentUser_Call

SetCurrentUser is a helper method to define mock.On call

  • ctx context.Context
  • user *types.User

func (*IAuth_Expecter) Signup

func (_e *IAuth_Expecter) Signup(ctx interface{}, newuser interface{}, password interface{}) *IAuth_Signup_Call

Signup is a helper method to define mock.On call

  • ctx context.Context
  • newuser types.User
  • password string

func (*IAuth_Expecter) ValidateToken

func (_e *IAuth_Expecter) ValidateToken(ctx interface{}, tokenStr interface{}) *IAuth_ValidateToken_Call

ValidateToken is a helper method to define mock.On call

  • ctx context.Context
  • tokenStr string

type IAuth_GenerateToken_Call

type IAuth_GenerateToken_Call struct {
	*mock.Call
}

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

func (*IAuth_GenerateToken_Call) Return

func (*IAuth_GenerateToken_Call) Run

func (_c *IAuth_GenerateToken_Call) Run(run func(ctx context.Context, email string, duration time.Duration)) *IAuth_GenerateToken_Call

func (*IAuth_GenerateToken_Call) RunAndReturn

type IAuth_Login_Call

type IAuth_Login_Call struct {
	*mock.Call
}

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

func (*IAuth_Login_Call) Return

func (_c *IAuth_Login_Call) Return(_a0 *types.JWT, _a1 error) *IAuth_Login_Call

func (*IAuth_Login_Call) Run

func (_c *IAuth_Login_Call) Run(run func(ctx context.Context, li types.LoginInput)) *IAuth_Login_Call

func (*IAuth_Login_Call) RunAndReturn

func (_c *IAuth_Login_Call) RunAndReturn(run func(context.Context, types.LoginInput) (*types.JWT, error)) *IAuth_Login_Call

type IAuth_RefreshToken_Call

type IAuth_RefreshToken_Call struct {
	*mock.Call
}

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

func (*IAuth_RefreshToken_Call) Return

func (*IAuth_RefreshToken_Call) Run

func (*IAuth_RefreshToken_Call) RunAndReturn

type IAuth_SetCurrentUser_Call

type IAuth_SetCurrentUser_Call struct {
	*mock.Call
}

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

func (*IAuth_SetCurrentUser_Call) Return

func (*IAuth_SetCurrentUser_Call) Run

func (*IAuth_SetCurrentUser_Call) RunAndReturn

type IAuth_Signup_Call

type IAuth_Signup_Call struct {
	*mock.Call
}

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

func (*IAuth_Signup_Call) Return

func (_c *IAuth_Signup_Call) Return(_a0 *types.JWT, _a1 error) *IAuth_Signup_Call

func (*IAuth_Signup_Call) Run

func (_c *IAuth_Signup_Call) Run(run func(ctx context.Context, newuser types.User, password string)) *IAuth_Signup_Call

func (*IAuth_Signup_Call) RunAndReturn

func (_c *IAuth_Signup_Call) RunAndReturn(run func(context.Context, types.User, string) (*types.JWT, error)) *IAuth_Signup_Call

type IAuth_ValidateToken_Call

type IAuth_ValidateToken_Call struct {
	*mock.Call
}

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

func (*IAuth_ValidateToken_Call) Return

func (*IAuth_ValidateToken_Call) Run

func (_c *IAuth_ValidateToken_Call) Run(run func(ctx context.Context, tokenStr string)) *IAuth_ValidateToken_Call

func (*IAuth_ValidateToken_Call) RunAndReturn

type IGenericRepo

type IGenericRepo[T interface{}] struct {
	mock.Mock
}

IGenericRepo is an autogenerated mock type for the IGenericRepo type

func NewIGenericRepo

func NewIGenericRepo[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *IGenericRepo[T]

NewIGenericRepo creates a new instance of IGenericRepo. 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 (*IGenericRepo[T]) Archive

func (_m *IGenericRepo[T]) Archive(entity *T) error

Archive provides a mock function with given fields: entity

func (*IGenericRepo[T]) Connection

func (_m *IGenericRepo[T]) Connection(tx *gorm.DB, tableName string, filter []types.FilterInput, sortBy string, direction types.AscOrDesc, limit int, after int) ([]*T, *types.PageInfo, error)

Connection provides a mock function with given fields: tx, tableName, filter, sortBy, direction, limit, after

func (*IGenericRepo[T]) Create

func (_m *IGenericRepo[T]) Create(entity *T) (*T, error)

Create provides a mock function with given fields: entity

func (*IGenericRepo[T]) Delete

func (_m *IGenericRepo[T]) Delete(entity *T) error

Delete provides a mock function with given fields: entity

func (*IGenericRepo[T]) EXPECT

func (_m *IGenericRepo[T]) EXPECT() *IGenericRepo_Expecter[T]

func (*IGenericRepo[T]) FindBy

func (_m *IGenericRepo[T]) FindBy(filters []types.Filter, preloads ...string) (*T, error)

FindBy provides a mock function with given fields: filters, preloads

func (*IGenericRepo[T]) FuzzyFindBy

func (_m *IGenericRepo[T]) FuzzyFindBy(key string, value interface{}) ([]*T, error)

FuzzyFindBy provides a mock function with given fields: key, value

func (*IGenericRepo[T]) ListBy

func (_m *IGenericRepo[T]) ListBy(filters []types.Filter, preloads ...string) ([]*T, error)

ListBy provides a mock function with given fields: filters, preloads

func (*IGenericRepo[T]) Update

func (_m *IGenericRepo[T]) Update(entity *T) (*T, error)

Update provides a mock function with given fields: entity

type IGenericRepo_Archive_Call

type IGenericRepo_Archive_Call[T interface{}] struct {
	*mock.Call
}

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

func (*IGenericRepo_Archive_Call[T]) Return

func (*IGenericRepo_Archive_Call[T]) Run

func (_c *IGenericRepo_Archive_Call[T]) Run(run func(entity *T)) *IGenericRepo_Archive_Call[T]

func (*IGenericRepo_Archive_Call[T]) RunAndReturn

func (_c *IGenericRepo_Archive_Call[T]) RunAndReturn(run func(*T) error) *IGenericRepo_Archive_Call[T]

type IGenericRepo_Connection_Call

type IGenericRepo_Connection_Call[T interface{}] struct {
	*mock.Call
}

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

func (*IGenericRepo_Connection_Call[T]) Return

func (_c *IGenericRepo_Connection_Call[T]) Return(_a0 []*T, _a1 *types.PageInfo, _a2 error) *IGenericRepo_Connection_Call[T]

func (*IGenericRepo_Connection_Call[T]) Run

func (_c *IGenericRepo_Connection_Call[T]) Run(run func(tx *gorm.DB, tableName string, filter []types.FilterInput, sortBy string, direction types.AscOrDesc, limit int, after int)) *IGenericRepo_Connection_Call[T]

func (*IGenericRepo_Connection_Call[T]) RunAndReturn

type IGenericRepo_Create_Call

type IGenericRepo_Create_Call[T interface{}] struct {
	*mock.Call
}

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

func (*IGenericRepo_Create_Call[T]) Return

func (_c *IGenericRepo_Create_Call[T]) Return(_a0 *T, _a1 error) *IGenericRepo_Create_Call[T]

func (*IGenericRepo_Create_Call[T]) Run

func (_c *IGenericRepo_Create_Call[T]) Run(run func(entity *T)) *IGenericRepo_Create_Call[T]

func (*IGenericRepo_Create_Call[T]) RunAndReturn

func (_c *IGenericRepo_Create_Call[T]) RunAndReturn(run func(*T) (*T, error)) *IGenericRepo_Create_Call[T]

type IGenericRepo_Delete_Call

type IGenericRepo_Delete_Call[T interface{}] struct {
	*mock.Call
}

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

func (*IGenericRepo_Delete_Call[T]) Return

func (*IGenericRepo_Delete_Call[T]) Run

func (_c *IGenericRepo_Delete_Call[T]) Run(run func(entity *T)) *IGenericRepo_Delete_Call[T]

func (*IGenericRepo_Delete_Call[T]) RunAndReturn

func (_c *IGenericRepo_Delete_Call[T]) RunAndReturn(run func(*T) error) *IGenericRepo_Delete_Call[T]

type IGenericRepo_Expecter

type IGenericRepo_Expecter[T interface{}] struct {
	// contains filtered or unexported fields
}

func (*IGenericRepo_Expecter[T]) Archive

func (_e *IGenericRepo_Expecter[T]) Archive(entity interface{}) *IGenericRepo_Archive_Call[T]

Archive is a helper method to define mock.On call

  • entity *T

func (*IGenericRepo_Expecter[T]) Connection

func (_e *IGenericRepo_Expecter[T]) Connection(tx interface{}, tableName interface{}, filter interface{}, sortBy interface{}, direction interface{}, limit interface{}, after interface{}) *IGenericRepo_Connection_Call[T]

Connection is a helper method to define mock.On call

  • tx *gorm.DB
  • tableName string
  • filter []types.FilterInput
  • sortBy string
  • direction types.AscOrDesc
  • limit int
  • after int

func (*IGenericRepo_Expecter[T]) Create

func (_e *IGenericRepo_Expecter[T]) Create(entity interface{}) *IGenericRepo_Create_Call[T]

Create is a helper method to define mock.On call

  • entity *T

func (*IGenericRepo_Expecter[T]) Delete

func (_e *IGenericRepo_Expecter[T]) Delete(entity interface{}) *IGenericRepo_Delete_Call[T]

Delete is a helper method to define mock.On call

  • entity *T

func (*IGenericRepo_Expecter[T]) FindBy

func (_e *IGenericRepo_Expecter[T]) FindBy(filters interface{}, preloads ...interface{}) *IGenericRepo_FindBy_Call[T]

FindBy is a helper method to define mock.On call

  • filters []types.Filter
  • preloads ...string

func (*IGenericRepo_Expecter[T]) FuzzyFindBy

func (_e *IGenericRepo_Expecter[T]) FuzzyFindBy(key interface{}, value interface{}) *IGenericRepo_FuzzyFindBy_Call[T]

FuzzyFindBy is a helper method to define mock.On call

  • key string
  • value interface{}

func (*IGenericRepo_Expecter[T]) ListBy

func (_e *IGenericRepo_Expecter[T]) ListBy(filters interface{}, preloads ...interface{}) *IGenericRepo_ListBy_Call[T]

ListBy is a helper method to define mock.On call

  • filters []types.Filter
  • preloads ...string

func (*IGenericRepo_Expecter[T]) Update

func (_e *IGenericRepo_Expecter[T]) Update(entity interface{}) *IGenericRepo_Update_Call[T]

Update is a helper method to define mock.On call

  • entity *T

type IGenericRepo_FindBy_Call

type IGenericRepo_FindBy_Call[T interface{}] struct {
	*mock.Call
}

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

func (*IGenericRepo_FindBy_Call[T]) Return

func (_c *IGenericRepo_FindBy_Call[T]) Return(_a0 *T, _a1 error) *IGenericRepo_FindBy_Call[T]

func (*IGenericRepo_FindBy_Call[T]) Run

func (_c *IGenericRepo_FindBy_Call[T]) Run(run func(filters []types.Filter, preloads ...string)) *IGenericRepo_FindBy_Call[T]

func (*IGenericRepo_FindBy_Call[T]) RunAndReturn

func (_c *IGenericRepo_FindBy_Call[T]) RunAndReturn(run func([]types.Filter, ...string) (*T, error)) *IGenericRepo_FindBy_Call[T]

type IGenericRepo_FuzzyFindBy_Call

type IGenericRepo_FuzzyFindBy_Call[T interface{}] struct {
	*mock.Call
}

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

func (*IGenericRepo_FuzzyFindBy_Call[T]) Return

func (_c *IGenericRepo_FuzzyFindBy_Call[T]) Return(_a0 []*T, _a1 error) *IGenericRepo_FuzzyFindBy_Call[T]

func (*IGenericRepo_FuzzyFindBy_Call[T]) Run

func (_c *IGenericRepo_FuzzyFindBy_Call[T]) Run(run func(key string, value interface{})) *IGenericRepo_FuzzyFindBy_Call[T]

func (*IGenericRepo_FuzzyFindBy_Call[T]) RunAndReturn

func (_c *IGenericRepo_FuzzyFindBy_Call[T]) RunAndReturn(run func(string, interface{}) ([]*T, error)) *IGenericRepo_FuzzyFindBy_Call[T]

type IGenericRepo_ListBy_Call

type IGenericRepo_ListBy_Call[T interface{}] struct {
	*mock.Call
}

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

func (*IGenericRepo_ListBy_Call[T]) Return

func (_c *IGenericRepo_ListBy_Call[T]) Return(_a0 []*T, _a1 error) *IGenericRepo_ListBy_Call[T]

func (*IGenericRepo_ListBy_Call[T]) Run

func (_c *IGenericRepo_ListBy_Call[T]) Run(run func(filters []types.Filter, preloads ...string)) *IGenericRepo_ListBy_Call[T]

func (*IGenericRepo_ListBy_Call[T]) RunAndReturn

func (_c *IGenericRepo_ListBy_Call[T]) RunAndReturn(run func([]types.Filter, ...string) ([]*T, error)) *IGenericRepo_ListBy_Call[T]

type IGenericRepo_Update_Call

type IGenericRepo_Update_Call[T interface{}] struct {
	*mock.Call
}

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

func (*IGenericRepo_Update_Call[T]) Return

func (_c *IGenericRepo_Update_Call[T]) Return(_a0 *T, _a1 error) *IGenericRepo_Update_Call[T]

func (*IGenericRepo_Update_Call[T]) Run

func (_c *IGenericRepo_Update_Call[T]) Run(run func(entity *T)) *IGenericRepo_Update_Call[T]

func (*IGenericRepo_Update_Call[T]) RunAndReturn

func (_c *IGenericRepo_Update_Call[T]) RunAndReturn(run func(*T) (*T, error)) *IGenericRepo_Update_Call[T]

type IQueue

type IQueue struct {
	mock.Mock
}

IQueue is an autogenerated mock type for the IQueue type

func NewIQueue

func NewIQueue(t interface {
	mock.TestingT
	Cleanup(func())
}) *IQueue

NewIQueue creates a new instance of IQueue. 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 (*IQueue) ArchiveTask

func (_m *IQueue) ArchiveTask(ctx context.Context, queueName string, taskId string) error

ArchiveTask provides a mock function with given fields: ctx, queueName, taskId

func (*IQueue) Clear

func (_m *IQueue) Clear(ctx context.Context, name string) ([]*asynq.TaskInfo, error)

Clear provides a mock function with given fields: ctx, name

func (*IQueue) DeleteTask

func (_m *IQueue) DeleteTask(ctx context.Context, queueName string, taskId string) error

DeleteTask provides a mock function with given fields: ctx, queueName, taskId

func (*IQueue) EXPECT

func (_m *IQueue) EXPECT() *IQueue_Expecter

func (*IQueue) Enqueue

func (_m *IQueue) Enqueue(ctx context.Context, task *asynq.Task, opts ...asynq.Option) (*asynq.TaskInfo, error)

Enqueue provides a mock function with given fields: ctx, task, opts

func (*IQueue) Get

func (_m *IQueue) Get(ctx context.Context, name string) (*asynq.QueueInfo, error)

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

func (*IQueue) RunTask

func (_m *IQueue) RunTask(ctx context.Context, queueName string, taskId string) error

RunTask provides a mock function with given fields: ctx, queueName, taskId

func (*IQueue) StartServer

func (_m *IQueue) StartServer(ctx context.Context, workPkg types.IWorker)

StartServer provides a mock function with given fields: ctx, workPkg

func (*IQueue) TogglePause

func (_m *IQueue) TogglePause(ctx context.Context, name string) error

TogglePause provides a mock function with given fields: ctx, name

type IQueue_ArchiveTask_Call

type IQueue_ArchiveTask_Call struct {
	*mock.Call
}

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

func (*IQueue_ArchiveTask_Call) Return

func (*IQueue_ArchiveTask_Call) Run

func (_c *IQueue_ArchiveTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_ArchiveTask_Call

func (*IQueue_ArchiveTask_Call) RunAndReturn

type IQueue_Clear_Call

type IQueue_Clear_Call struct {
	*mock.Call
}

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

func (*IQueue_Clear_Call) Return

func (_c *IQueue_Clear_Call) Return(_a0 []*asynq.TaskInfo, _a1 error) *IQueue_Clear_Call

func (*IQueue_Clear_Call) Run

func (_c *IQueue_Clear_Call) Run(run func(ctx context.Context, name string)) *IQueue_Clear_Call

func (*IQueue_Clear_Call) RunAndReturn

func (_c *IQueue_Clear_Call) RunAndReturn(run func(context.Context, string) ([]*asynq.TaskInfo, error)) *IQueue_Clear_Call

type IQueue_DeleteTask_Call

type IQueue_DeleteTask_Call struct {
	*mock.Call
}

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

func (*IQueue_DeleteTask_Call) Return

func (*IQueue_DeleteTask_Call) Run

func (_c *IQueue_DeleteTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_DeleteTask_Call

func (*IQueue_DeleteTask_Call) RunAndReturn

type IQueue_Enqueue_Call

type IQueue_Enqueue_Call struct {
	*mock.Call
}

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

func (*IQueue_Enqueue_Call) Return

func (*IQueue_Enqueue_Call) Run

func (_c *IQueue_Enqueue_Call) Run(run func(ctx context.Context, task *asynq.Task, opts ...asynq.Option)) *IQueue_Enqueue_Call

func (*IQueue_Enqueue_Call) RunAndReturn

type IQueue_Expecter

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

func (*IQueue_Expecter) ArchiveTask

func (_e *IQueue_Expecter) ArchiveTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_ArchiveTask_Call

ArchiveTask is a helper method to define mock.On call

  • ctx context.Context
  • queueName string
  • taskId string

func (*IQueue_Expecter) Clear

func (_e *IQueue_Expecter) Clear(ctx interface{}, name interface{}) *IQueue_Clear_Call

Clear is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*IQueue_Expecter) DeleteTask

func (_e *IQueue_Expecter) DeleteTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_DeleteTask_Call

DeleteTask is a helper method to define mock.On call

  • ctx context.Context
  • queueName string
  • taskId string

func (*IQueue_Expecter) Enqueue

func (_e *IQueue_Expecter) Enqueue(ctx interface{}, task interface{}, opts ...interface{}) *IQueue_Enqueue_Call

Enqueue is a helper method to define mock.On call

  • ctx context.Context
  • task *asynq.Task
  • opts ...asynq.Option

func (*IQueue_Expecter) Get

func (_e *IQueue_Expecter) Get(ctx interface{}, name interface{}) *IQueue_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*IQueue_Expecter) RunTask

func (_e *IQueue_Expecter) RunTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_RunTask_Call

RunTask is a helper method to define mock.On call

  • ctx context.Context
  • queueName string
  • taskId string

func (*IQueue_Expecter) StartServer

func (_e *IQueue_Expecter) StartServer(ctx interface{}, workPkg interface{}) *IQueue_StartServer_Call

StartServer is a helper method to define mock.On call

  • ctx context.Context
  • workPkg types.IWorker

func (*IQueue_Expecter) TogglePause

func (_e *IQueue_Expecter) TogglePause(ctx interface{}, name interface{}) *IQueue_TogglePause_Call

TogglePause is a helper method to define mock.On call

  • ctx context.Context
  • name string

type IQueue_Get_Call

type IQueue_Get_Call struct {
	*mock.Call
}

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

func (*IQueue_Get_Call) Return

func (_c *IQueue_Get_Call) Return(_a0 *asynq.QueueInfo, _a1 error) *IQueue_Get_Call

func (*IQueue_Get_Call) Run

func (_c *IQueue_Get_Call) Run(run func(ctx context.Context, name string)) *IQueue_Get_Call

func (*IQueue_Get_Call) RunAndReturn

func (_c *IQueue_Get_Call) RunAndReturn(run func(context.Context, string) (*asynq.QueueInfo, error)) *IQueue_Get_Call

type IQueue_RunTask_Call

type IQueue_RunTask_Call struct {
	*mock.Call
}

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

func (*IQueue_RunTask_Call) Return

func (*IQueue_RunTask_Call) Run

func (_c *IQueue_RunTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_RunTask_Call

func (*IQueue_RunTask_Call) RunAndReturn

func (_c *IQueue_RunTask_Call) RunAndReturn(run func(context.Context, string, string) error) *IQueue_RunTask_Call

type IQueue_StartServer_Call

type IQueue_StartServer_Call struct {
	*mock.Call
}

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

func (*IQueue_StartServer_Call) Return

func (*IQueue_StartServer_Call) Run

func (*IQueue_StartServer_Call) RunAndReturn

type IQueue_TogglePause_Call

type IQueue_TogglePause_Call struct {
	*mock.Call
}

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

func (*IQueue_TogglePause_Call) Return

func (*IQueue_TogglePause_Call) Run

func (*IQueue_TogglePause_Call) RunAndReturn

type ISearch

type ISearch struct {
	mock.Mock
}

ISearch is an autogenerated mock type for the ISearch type

func NewISearch

func NewISearch(t interface {
	mock.TestingT
	Cleanup(func())
}) *ISearch

NewISearch creates a new instance of ISearch. 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 (*ISearch) Apples

func (_m *ISearch) Apples(ctx context.Context, input *types.ConnectionInput) (*types.AppleConnection, error)

Apples provides a mock function with given fields: ctx, input

func (*ISearch) EXPECT

func (_m *ISearch) EXPECT() *ISearch_Expecter

type ISearch_Apples_Call

type ISearch_Apples_Call struct {
	*mock.Call
}

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

func (*ISearch_Apples_Call) Return

func (*ISearch_Apples_Call) Run

func (*ISearch_Apples_Call) RunAndReturn

type ISearch_Expecter

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

func (*ISearch_Expecter) Apples

func (_e *ISearch_Expecter) Apples(ctx interface{}, input interface{}) *ISearch_Apples_Call

Apples is a helper method to define mock.On call

  • ctx context.Context
  • input *types.ConnectionInput

type ISomeService

type ISomeService struct {
	mock.Mock
}

ISomeService is an autogenerated mock type for the ISomeService type

func NewISomeService

func NewISomeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ISomeService

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

func (_m *ISomeService) EXPECT() *ISomeService_Expecter

func (*ISomeService) SomeMethod

func (_m *ISomeService) SomeMethod(ctx context.Context) error

SomeMethod provides a mock function with given fields: ctx

type ISomeService_Expecter

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

func (*ISomeService_Expecter) SomeMethod

func (_e *ISomeService_Expecter) SomeMethod(ctx interface{}) *ISomeService_SomeMethod_Call

SomeMethod is a helper method to define mock.On call

  • ctx context.Context

type ISomeService_SomeMethod_Call

type ISomeService_SomeMethod_Call struct {
	*mock.Call
}

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

func (*ISomeService_SomeMethod_Call) Return

func (*ISomeService_SomeMethod_Call) Run

func (*ISomeService_SomeMethod_Call) RunAndReturn

type IWorker

type IWorker struct {
	mock.Mock
}

IWorker is an autogenerated mock type for the IWorker type

func NewIWorker

func NewIWorker(t interface {
	mock.TestingT
	Cleanup(func())
}) *IWorker

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

func (_m *IWorker) EXPECT() *IWorker_Expecter

func (*IWorker) HandleProcessSomeDataTask

func (_m *IWorker) HandleProcessSomeDataTask(ctx context.Context, t *asynq.Task) error

HandleProcessSomeDataTask provides a mock function with given fields: ctx, t

type IWorker_Expecter

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

func (*IWorker_Expecter) HandleProcessSomeDataTask

func (_e *IWorker_Expecter) HandleProcessSomeDataTask(ctx interface{}, t interface{}) *IWorker_HandleProcessSomeDataTask_Call

HandleProcessSomeDataTask is a helper method to define mock.On call

  • ctx context.Context
  • t *asynq.Task

type IWorker_HandleProcessSomeDataTask_Call

type IWorker_HandleProcessSomeDataTask_Call struct {
	*mock.Call
}

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

func (*IWorker_HandleProcessSomeDataTask_Call) Return

func (*IWorker_HandleProcessSomeDataTask_Call) Run

func (*IWorker_HandleProcessSomeDataTask_Call) RunAndReturn

type Modeler

type Modeler struct {
	mock.Mock
}

Modeler is an autogenerated mock type for the Modeler type

func NewModeler

func NewModeler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Modeler

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

func (_m *Modeler) EXPECT() *Modeler_Expecter

func (*Modeler) GetID

func (_m *Modeler) GetID() uint

GetID provides a mock function with given fields:

type Modeler_Expecter

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

func (*Modeler_Expecter) GetID

func (_e *Modeler_Expecter) GetID() *Modeler_GetID_Call

GetID is a helper method to define mock.On call

type Modeler_GetID_Call

type Modeler_GetID_Call struct {
	*mock.Call
}

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

func (*Modeler_GetID_Call) Return

func (_c *Modeler_GetID_Call) Return(_a0 uint) *Modeler_GetID_Call

func (*Modeler_GetID_Call) Run

func (_c *Modeler_GetID_Call) Run(run func()) *Modeler_GetID_Call

func (*Modeler_GetID_Call) RunAndReturn

func (_c *Modeler_GetID_Call) RunAndReturn(run func() uint) *Modeler_GetID_Call

Jump to

Keyboard shortcuts

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