mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 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 MockMetricsRepository

type MockMetricsRepository struct {
	mock.Mock
}

MockMetricsRepository is an autogenerated mock type for the MetricsRepository type

func NewMockMetricsRepository

func NewMockMetricsRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMetricsRepository

NewMockMetricsRepository creates a new instance of MockMetricsRepository. 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 (*MockMetricsRepository) CreatePropletMetrics

func (_mock *MockMetricsRepository) CreatePropletMetrics(ctx context.Context, m storage.PropletMetrics) error

CreatePropletMetrics provides a mock function for the type MockMetricsRepository

func (*MockMetricsRepository) CreateTaskMetrics

func (_mock *MockMetricsRepository) CreateTaskMetrics(ctx context.Context, m storage.TaskMetrics) error

CreateTaskMetrics provides a mock function for the type MockMetricsRepository

func (*MockMetricsRepository) EXPECT

func (*MockMetricsRepository) ListPropletMetrics

func (_mock *MockMetricsRepository) ListPropletMetrics(ctx context.Context, propletID string, offset uint64, limit uint64) ([]storage.PropletMetrics, uint64, error)

ListPropletMetrics provides a mock function for the type MockMetricsRepository

func (*MockMetricsRepository) ListTaskMetrics

func (_mock *MockMetricsRepository) ListTaskMetrics(ctx context.Context, taskID string, offset uint64, limit uint64) ([]storage.TaskMetrics, uint64, error)

ListTaskMetrics provides a mock function for the type MockMetricsRepository

type MockMetricsRepository_CreatePropletMetrics_Call

type MockMetricsRepository_CreatePropletMetrics_Call struct {
	*mock.Call
}

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

func (*MockMetricsRepository_CreatePropletMetrics_Call) Return

func (*MockMetricsRepository_CreatePropletMetrics_Call) Run

func (*MockMetricsRepository_CreatePropletMetrics_Call) RunAndReturn

type MockMetricsRepository_CreateTaskMetrics_Call

type MockMetricsRepository_CreateTaskMetrics_Call struct {
	*mock.Call
}

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

func (*MockMetricsRepository_CreateTaskMetrics_Call) Return

func (*MockMetricsRepository_CreateTaskMetrics_Call) Run

func (*MockMetricsRepository_CreateTaskMetrics_Call) RunAndReturn

type MockMetricsRepository_Expecter

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

func (*MockMetricsRepository_Expecter) CreatePropletMetrics

func (_e *MockMetricsRepository_Expecter) CreatePropletMetrics(ctx interface{}, m interface{}) *MockMetricsRepository_CreatePropletMetrics_Call

CreatePropletMetrics is a helper method to define mock.On call

  • ctx context.Context
  • m storage.PropletMetrics

func (*MockMetricsRepository_Expecter) CreateTaskMetrics

func (_e *MockMetricsRepository_Expecter) CreateTaskMetrics(ctx interface{}, m interface{}) *MockMetricsRepository_CreateTaskMetrics_Call

CreateTaskMetrics is a helper method to define mock.On call

  • ctx context.Context
  • m storage.TaskMetrics

func (*MockMetricsRepository_Expecter) ListPropletMetrics

func (_e *MockMetricsRepository_Expecter) ListPropletMetrics(ctx interface{}, propletID interface{}, offset interface{}, limit interface{}) *MockMetricsRepository_ListPropletMetrics_Call

ListPropletMetrics is a helper method to define mock.On call

  • ctx context.Context
  • propletID string
  • offset uint64
  • limit uint64

func (*MockMetricsRepository_Expecter) ListTaskMetrics

func (_e *MockMetricsRepository_Expecter) ListTaskMetrics(ctx interface{}, taskID interface{}, offset interface{}, limit interface{}) *MockMetricsRepository_ListTaskMetrics_Call

ListTaskMetrics is a helper method to define mock.On call

  • ctx context.Context
  • taskID string
  • offset uint64
  • limit uint64

type MockMetricsRepository_ListPropletMetrics_Call

type MockMetricsRepository_ListPropletMetrics_Call struct {
	*mock.Call
}

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

func (*MockMetricsRepository_ListPropletMetrics_Call) Return

func (*MockMetricsRepository_ListPropletMetrics_Call) Run

func (*MockMetricsRepository_ListPropletMetrics_Call) RunAndReturn

type MockMetricsRepository_ListTaskMetrics_Call

type MockMetricsRepository_ListTaskMetrics_Call struct {
	*mock.Call
}

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

func (*MockMetricsRepository_ListTaskMetrics_Call) Return

func (*MockMetricsRepository_ListTaskMetrics_Call) Run

func (*MockMetricsRepository_ListTaskMetrics_Call) RunAndReturn

type MockPropletRepository

type MockPropletRepository struct {
	mock.Mock
}

MockPropletRepository is an autogenerated mock type for the PropletRepository type

func NewMockPropletRepository

func NewMockPropletRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPropletRepository

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

func (_mock *MockPropletRepository) Create(ctx context.Context, p proplet.Proplet) error

Create provides a mock function for the type MockPropletRepository

func (*MockPropletRepository) Delete

func (_mock *MockPropletRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function for the type MockPropletRepository

func (*MockPropletRepository) EXPECT

func (*MockPropletRepository) Get

Get provides a mock function for the type MockPropletRepository

func (*MockPropletRepository) List

func (_mock *MockPropletRepository) List(ctx context.Context, offset uint64, limit uint64) ([]proplet.Proplet, uint64, error)

List provides a mock function for the type MockPropletRepository

func (*MockPropletRepository) Update

func (_mock *MockPropletRepository) Update(ctx context.Context, p proplet.Proplet) error

Update provides a mock function for the type MockPropletRepository

type MockPropletRepository_Create_Call

type MockPropletRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockPropletRepository_Create_Call) Return

func (*MockPropletRepository_Create_Call) Run

func (*MockPropletRepository_Create_Call) RunAndReturn

type MockPropletRepository_Delete_Call

type MockPropletRepository_Delete_Call struct {
	*mock.Call
}

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

func (*MockPropletRepository_Delete_Call) Return

func (*MockPropletRepository_Delete_Call) Run

func (*MockPropletRepository_Delete_Call) RunAndReturn

type MockPropletRepository_Expecter

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

func (*MockPropletRepository_Expecter) Create

func (_e *MockPropletRepository_Expecter) Create(ctx interface{}, p interface{}) *MockPropletRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • p proplet.Proplet

func (*MockPropletRepository_Expecter) Delete

func (_e *MockPropletRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockPropletRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockPropletRepository_Expecter) Get

func (_e *MockPropletRepository_Expecter) Get(ctx interface{}, id interface{}) *MockPropletRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockPropletRepository_Expecter) List

func (_e *MockPropletRepository_Expecter) List(ctx interface{}, offset interface{}, limit interface{}) *MockPropletRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • offset uint64
  • limit uint64

func (*MockPropletRepository_Expecter) Update

func (_e *MockPropletRepository_Expecter) Update(ctx interface{}, p interface{}) *MockPropletRepository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • p proplet.Proplet

type MockPropletRepository_Get_Call

type MockPropletRepository_Get_Call struct {
	*mock.Call
}

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

func (*MockPropletRepository_Get_Call) Return

func (*MockPropletRepository_Get_Call) Run

func (*MockPropletRepository_Get_Call) RunAndReturn

type MockPropletRepository_List_Call

type MockPropletRepository_List_Call struct {
	*mock.Call
}

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

func (*MockPropletRepository_List_Call) Return

func (*MockPropletRepository_List_Call) Run

func (*MockPropletRepository_List_Call) RunAndReturn

type MockPropletRepository_Update_Call

type MockPropletRepository_Update_Call struct {
	*mock.Call
}

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

func (*MockPropletRepository_Update_Call) Return

func (*MockPropletRepository_Update_Call) Run

func (*MockPropletRepository_Update_Call) RunAndReturn

type MockTaskPropletRepository

type MockTaskPropletRepository struct {
	mock.Mock
}

MockTaskPropletRepository is an autogenerated mock type for the TaskPropletRepository type

func NewMockTaskPropletRepository

func NewMockTaskPropletRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTaskPropletRepository

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

func (_mock *MockTaskPropletRepository) Create(ctx context.Context, taskID string, propletID string) error

Create provides a mock function for the type MockTaskPropletRepository

func (*MockTaskPropletRepository) Delete

func (_mock *MockTaskPropletRepository) Delete(ctx context.Context, taskID string) error

Delete provides a mock function for the type MockTaskPropletRepository

func (*MockTaskPropletRepository) EXPECT

func (*MockTaskPropletRepository) Get

func (_mock *MockTaskPropletRepository) Get(ctx context.Context, taskID string) (string, error)

Get provides a mock function for the type MockTaskPropletRepository

type MockTaskPropletRepository_Create_Call

type MockTaskPropletRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockTaskPropletRepository_Create_Call) Return

func (*MockTaskPropletRepository_Create_Call) Run

func (*MockTaskPropletRepository_Create_Call) RunAndReturn

type MockTaskPropletRepository_Delete_Call

type MockTaskPropletRepository_Delete_Call struct {
	*mock.Call
}

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

func (*MockTaskPropletRepository_Delete_Call) Return

func (*MockTaskPropletRepository_Delete_Call) Run

func (*MockTaskPropletRepository_Delete_Call) RunAndReturn

type MockTaskPropletRepository_Expecter

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

func (*MockTaskPropletRepository_Expecter) Create

func (_e *MockTaskPropletRepository_Expecter) Create(ctx interface{}, taskID interface{}, propletID interface{}) *MockTaskPropletRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • taskID string
  • propletID string

func (*MockTaskPropletRepository_Expecter) Delete

func (_e *MockTaskPropletRepository_Expecter) Delete(ctx interface{}, taskID interface{}) *MockTaskPropletRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • taskID string

func (*MockTaskPropletRepository_Expecter) Get

func (_e *MockTaskPropletRepository_Expecter) Get(ctx interface{}, taskID interface{}) *MockTaskPropletRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • taskID string

type MockTaskPropletRepository_Get_Call

type MockTaskPropletRepository_Get_Call struct {
	*mock.Call
}

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

func (*MockTaskPropletRepository_Get_Call) Return

func (*MockTaskPropletRepository_Get_Call) Run

func (*MockTaskPropletRepository_Get_Call) RunAndReturn

type MockTaskRepository

type MockTaskRepository struct {
	mock.Mock
}

MockTaskRepository is an autogenerated mock type for the TaskRepository type

func NewMockTaskRepository

func NewMockTaskRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTaskRepository

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

func (_mock *MockTaskRepository) Create(ctx context.Context, t task.Task) (task.Task, error)

Create provides a mock function for the type MockTaskRepository

func (*MockTaskRepository) Delete

func (_mock *MockTaskRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function for the type MockTaskRepository

func (*MockTaskRepository) EXPECT

func (*MockTaskRepository) Get

func (_mock *MockTaskRepository) Get(ctx context.Context, id string) (task.Task, error)

Get provides a mock function for the type MockTaskRepository

func (*MockTaskRepository) List

func (_mock *MockTaskRepository) List(ctx context.Context, offset uint64, limit uint64) ([]task.Task, uint64, error)

List provides a mock function for the type MockTaskRepository

func (*MockTaskRepository) ListByJobID

func (_mock *MockTaskRepository) ListByJobID(ctx context.Context, jobID string) ([]task.Task, error)

ListByJobID provides a mock function for the type MockTaskRepository

func (*MockTaskRepository) ListByWorkflowID

func (_mock *MockTaskRepository) ListByWorkflowID(ctx context.Context, workflowID string) ([]task.Task, error)

ListByWorkflowID provides a mock function for the type MockTaskRepository

func (*MockTaskRepository) Update

func (_mock *MockTaskRepository) Update(ctx context.Context, t task.Task) error

Update provides a mock function for the type MockTaskRepository

type MockTaskRepository_Create_Call

type MockTaskRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockTaskRepository_Create_Call) Return

func (*MockTaskRepository_Create_Call) Run

func (*MockTaskRepository_Create_Call) RunAndReturn

type MockTaskRepository_Delete_Call

type MockTaskRepository_Delete_Call struct {
	*mock.Call
}

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

func (*MockTaskRepository_Delete_Call) Return

func (*MockTaskRepository_Delete_Call) Run

func (*MockTaskRepository_Delete_Call) RunAndReturn

type MockTaskRepository_Expecter

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

func (*MockTaskRepository_Expecter) Create

func (_e *MockTaskRepository_Expecter) Create(ctx interface{}, t interface{}) *MockTaskRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • t task.Task

func (*MockTaskRepository_Expecter) Delete

func (_e *MockTaskRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockTaskRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockTaskRepository_Expecter) Get

func (_e *MockTaskRepository_Expecter) Get(ctx interface{}, id interface{}) *MockTaskRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockTaskRepository_Expecter) List

func (_e *MockTaskRepository_Expecter) List(ctx interface{}, offset interface{}, limit interface{}) *MockTaskRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • offset uint64
  • limit uint64

func (*MockTaskRepository_Expecter) ListByJobID

func (_e *MockTaskRepository_Expecter) ListByJobID(ctx interface{}, jobID interface{}) *MockTaskRepository_ListByJobID_Call

ListByJobID is a helper method to define mock.On call

  • ctx context.Context
  • jobID string

func (*MockTaskRepository_Expecter) ListByWorkflowID

func (_e *MockTaskRepository_Expecter) ListByWorkflowID(ctx interface{}, workflowID interface{}) *MockTaskRepository_ListByWorkflowID_Call

ListByWorkflowID is a helper method to define mock.On call

  • ctx context.Context
  • workflowID string

func (*MockTaskRepository_Expecter) Update

func (_e *MockTaskRepository_Expecter) Update(ctx interface{}, t interface{}) *MockTaskRepository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • t task.Task

type MockTaskRepository_Get_Call

type MockTaskRepository_Get_Call struct {
	*mock.Call
}

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

func (*MockTaskRepository_Get_Call) Return

func (*MockTaskRepository_Get_Call) Run

func (*MockTaskRepository_Get_Call) RunAndReturn

type MockTaskRepository_ListByJobID_Call

type MockTaskRepository_ListByJobID_Call struct {
	*mock.Call
}

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

func (*MockTaskRepository_ListByJobID_Call) Return

func (*MockTaskRepository_ListByJobID_Call) Run

func (*MockTaskRepository_ListByJobID_Call) RunAndReturn

type MockTaskRepository_ListByWorkflowID_Call

type MockTaskRepository_ListByWorkflowID_Call struct {
	*mock.Call
}

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

func (*MockTaskRepository_ListByWorkflowID_Call) Return

func (*MockTaskRepository_ListByWorkflowID_Call) Run

func (*MockTaskRepository_ListByWorkflowID_Call) RunAndReturn

type MockTaskRepository_List_Call

type MockTaskRepository_List_Call struct {
	*mock.Call
}

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

func (*MockTaskRepository_List_Call) Return

func (*MockTaskRepository_List_Call) Run

func (*MockTaskRepository_List_Call) RunAndReturn

func (_c *MockTaskRepository_List_Call) RunAndReturn(run func(ctx context.Context, offset uint64, limit uint64) ([]task.Task, uint64, error)) *MockTaskRepository_List_Call

type MockTaskRepository_Update_Call

type MockTaskRepository_Update_Call struct {
	*mock.Call
}

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

func (*MockTaskRepository_Update_Call) Return

func (*MockTaskRepository_Update_Call) Run

func (*MockTaskRepository_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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