mocks

package
v0.0.0-...-46aa976 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 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 JiraRepository

type JiraRepository struct {
	mock.Mock
}

JiraRepository is an autogenerated mock type for the JiraRepository type

func NewJiraRepository

func NewJiraRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *JiraRepository

NewJiraRepository creates a new instance of JiraRepository. 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 (*JiraRepository) AddWorklog

func (_m *JiraRepository) AddWorklog(ctx context.Context, issueID string, taskName string, timeSpent time.Duration, integrationEntity entity.Integration) error

AddWorklog provides a mock function with given fields: ctx, issueID, taskName, timeSpent, integrationEntity

func (*JiraRepository) EXPECT

type JiraRepository_AddWorklog_Call

type JiraRepository_AddWorklog_Call struct {
	*mock.Call
}

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

func (*JiraRepository_AddWorklog_Call) Return

func (*JiraRepository_AddWorklog_Call) Run

func (_c *JiraRepository_AddWorklog_Call) Run(run func(ctx context.Context, issueID string, taskName string, timeSpent time.Duration, integrationEntity entity.Integration)) *JiraRepository_AddWorklog_Call

func (*JiraRepository_AddWorklog_Call) RunAndReturn

type JiraRepository_Expecter

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

func (*JiraRepository_Expecter) AddWorklog

func (_e *JiraRepository_Expecter) AddWorklog(ctx interface{}, issueID interface{}, taskName interface{}, timeSpent interface{}, integrationEntity interface{}) *JiraRepository_AddWorklog_Call

AddWorklog is a helper method to define mock.On call

  • ctx context.Context
  • issueID string
  • taskName string
  • timeSpent time.Duration
  • integrationEntity entity.Integration

type ProjectRepository

type ProjectRepository struct {
	mock.Mock
}

ProjectRepository is an autogenerated mock type for the ProjectRepository type

func NewProjectRepository

func NewProjectRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectRepository

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

func (*ProjectRepository) GetSelectedProject

func (_m *ProjectRepository) GetSelectedProject(ctx context.Context) (entity.Project, error)

GetSelectedProject provides a mock function with given fields: ctx

type ProjectRepository_Expecter

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

func (*ProjectRepository_Expecter) GetSelectedProject

func (_e *ProjectRepository_Expecter) GetSelectedProject(ctx interface{}) *ProjectRepository_GetSelectedProject_Call

GetSelectedProject is a helper method to define mock.On call

  • ctx context.Context

type ProjectRepository_GetSelectedProject_Call

type ProjectRepository_GetSelectedProject_Call struct {
	*mock.Call
}

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

func (*ProjectRepository_GetSelectedProject_Call) Return

func (*ProjectRepository_GetSelectedProject_Call) Run

func (*ProjectRepository_GetSelectedProject_Call) RunAndReturn

type TaskRepository

type TaskRepository struct {
	mock.Mock
}

TaskRepository is an autogenerated mock type for the TaskRepository type

func NewTaskRepository

func NewTaskRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskRepository

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

func (*TaskRepository) GetByID

func (_m *TaskRepository) GetByID(ctx context.Context, id string) (entity.Task, error)

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

type TaskRepository_Expecter

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

func (*TaskRepository_Expecter) GetByID

func (_e *TaskRepository_Expecter) GetByID(ctx interface{}, id interface{}) *TaskRepository_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type TaskRepository_GetByID_Call

type TaskRepository_GetByID_Call struct {
	*mock.Call
}

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

func (*TaskRepository_GetByID_Call) Return

func (*TaskRepository_GetByID_Call) Run

func (*TaskRepository_GetByID_Call) RunAndReturn

type UseCase

type UseCase struct {
	mock.Mock
}

UseCase is an autogenerated mock type for the UseCase type

func NewUseCase

func NewUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *UseCase

NewUseCase creates a new instance of UseCase. 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 (*UseCase) AddWorklog

func (_m *UseCase) AddWorklog(ctx context.Context, task entity.Task, timeSpent time.Duration) error

AddWorklog provides a mock function with given fields: ctx, task, timeSpent

func (*UseCase) EXPECT

func (_m *UseCase) EXPECT() *UseCase_Expecter

type UseCase_AddWorklog_Call

type UseCase_AddWorklog_Call struct {
	*mock.Call
}

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

func (*UseCase_AddWorklog_Call) Return

func (*UseCase_AddWorklog_Call) Run

func (_c *UseCase_AddWorklog_Call) Run(run func(ctx context.Context, task entity.Task, timeSpent time.Duration)) *UseCase_AddWorklog_Call

func (*UseCase_AddWorklog_Call) RunAndReturn

type UseCase_Expecter

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

func (*UseCase_Expecter) AddWorklog

func (_e *UseCase_Expecter) AddWorklog(ctx interface{}, task interface{}, timeSpent interface{}) *UseCase_AddWorklog_Call

AddWorklog is a helper method to define mock.On call

  • ctx context.Context
  • task entity.Task
  • timeSpent time.Duration

Jump to

Keyboard shortcuts

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