mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.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 MockManager

type MockManager struct {
	mock.Mock
}

MockManager is an autogenerated mock type for the Manager type

func NewMockManager

func NewMockManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockManager

NewMockManager creates a new instance of MockManager. 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 (*MockManager) AbortInflight

func (_m *MockManager) AbortInflight(ctx context.Context) (uint32, error)

AbortInflight provides a mock function with given fields: ctx

func (*MockManager) Cancel

func (_m *MockManager) Cancel(ctx context.Context, id uint32) error

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

func (*MockManager) Commit

func (_m *MockManager) Commit(ctx context.Context, id uint32) error

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

func (*MockManager) Delete

func (_m *MockManager) Delete(ctx context.Context, id uint32) error

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

func (*MockManager) EXPECT

func (_m *MockManager) EXPECT() *MockManager_Expecter

func (*MockManager) Files

Files provides a mock function with given fields: ctx, p

func (*MockManager) Get

func (_m *MockManager) Get(ctx context.Context, id uint32) (*ent.ImportScan, error)

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

func (*MockManager) GetFile

func (_m *MockManager) GetFile(ctx context.Context, scanID uint32, fileID uint32) (*ent.ImportScanFile, error)

GetFile provides a mock function with given fields: ctx, scanID, fileID

func (*MockManager) List

func (_m *MockManager) List(ctx context.Context, page uint16, limit uint16) ([]*ent.ImportScan, uint32, error)

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

func (*MockManager) StartScan

StartScan provides a mock function with given fields: ctx, p

func (*MockManager) UpdateFileDecision

func (_m *MockManager) UpdateFileDecision(ctx context.Context, scanID uint32, fileID uint32, decision importscanfile.Decision, tmdbID *uint32) (*ent.ImportScanFile, error)

UpdateFileDecision provides a mock function with given fields: ctx, scanID, fileID, decision, tmdbID

type MockManager_AbortInflight_Call

type MockManager_AbortInflight_Call struct {
	*mock.Call
}

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

func (*MockManager_AbortInflight_Call) Return

func (*MockManager_AbortInflight_Call) Run

func (*MockManager_AbortInflight_Call) RunAndReturn

type MockManager_Cancel_Call

type MockManager_Cancel_Call struct {
	*mock.Call
}

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

func (*MockManager_Cancel_Call) Return

func (*MockManager_Cancel_Call) Run

func (*MockManager_Cancel_Call) RunAndReturn

type MockManager_Commit_Call

type MockManager_Commit_Call struct {
	*mock.Call
}

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

func (*MockManager_Commit_Call) Return

func (*MockManager_Commit_Call) Run

func (*MockManager_Commit_Call) RunAndReturn

type MockManager_Delete_Call

type MockManager_Delete_Call struct {
	*mock.Call
}

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

func (*MockManager_Delete_Call) Return

func (*MockManager_Delete_Call) Run

func (*MockManager_Delete_Call) RunAndReturn

type MockManager_Expecter

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

func (*MockManager_Expecter) AbortInflight

func (_e *MockManager_Expecter) AbortInflight(ctx interface{}) *MockManager_AbortInflight_Call

AbortInflight is a helper method to define mock.On call

  • ctx context.Context

func (*MockManager_Expecter) Cancel

func (_e *MockManager_Expecter) Cancel(ctx interface{}, id interface{}) *MockManager_Cancel_Call

Cancel is a helper method to define mock.On call

  • ctx context.Context
  • id uint32

func (*MockManager_Expecter) Commit

func (_e *MockManager_Expecter) Commit(ctx interface{}, id interface{}) *MockManager_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context
  • id uint32

func (*MockManager_Expecter) Delete

func (_e *MockManager_Expecter) Delete(ctx interface{}, id interface{}) *MockManager_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id uint32

func (*MockManager_Expecter) Files

func (_e *MockManager_Expecter) Files(ctx interface{}, p interface{}) *MockManager_Files_Call

Files is a helper method to define mock.On call

  • ctx context.Context
  • p bulkimport.FilesParams

func (*MockManager_Expecter) Get

func (_e *MockManager_Expecter) Get(ctx interface{}, id interface{}) *MockManager_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id uint32

func (*MockManager_Expecter) GetFile

func (_e *MockManager_Expecter) GetFile(ctx interface{}, scanID interface{}, fileID interface{}) *MockManager_GetFile_Call

GetFile is a helper method to define mock.On call

  • ctx context.Context
  • scanID uint32
  • fileID uint32

func (*MockManager_Expecter) List

func (_e *MockManager_Expecter) List(ctx interface{}, page interface{}, limit interface{}) *MockManager_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • page uint16
  • limit uint16

func (*MockManager_Expecter) StartScan

func (_e *MockManager_Expecter) StartScan(ctx interface{}, p interface{}) *MockManager_StartScan_Call

StartScan is a helper method to define mock.On call

  • ctx context.Context
  • p bulkimport.StartScanParams

func (*MockManager_Expecter) UpdateFileDecision

func (_e *MockManager_Expecter) UpdateFileDecision(ctx interface{}, scanID interface{}, fileID interface{}, decision interface{}, tmdbID interface{}) *MockManager_UpdateFileDecision_Call

UpdateFileDecision is a helper method to define mock.On call

  • ctx context.Context
  • scanID uint32
  • fileID uint32
  • decision importscanfile.Decision
  • tmdbID *uint32

type MockManager_Files_Call

type MockManager_Files_Call struct {
	*mock.Call
}

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

func (*MockManager_Files_Call) Return

func (*MockManager_Files_Call) Run

func (*MockManager_Files_Call) RunAndReturn

type MockManager_GetFile_Call

type MockManager_GetFile_Call struct {
	*mock.Call
}

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

func (*MockManager_GetFile_Call) Return

func (*MockManager_GetFile_Call) Run

func (_c *MockManager_GetFile_Call) Run(run func(ctx context.Context, scanID uint32, fileID uint32)) *MockManager_GetFile_Call

func (*MockManager_GetFile_Call) RunAndReturn

type MockManager_Get_Call

type MockManager_Get_Call struct {
	*mock.Call
}

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

func (*MockManager_Get_Call) Return

func (*MockManager_Get_Call) Run

func (_c *MockManager_Get_Call) Run(run func(ctx context.Context, id uint32)) *MockManager_Get_Call

func (*MockManager_Get_Call) RunAndReturn

type MockManager_List_Call

type MockManager_List_Call struct {
	*mock.Call
}

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

func (*MockManager_List_Call) Return

func (_c *MockManager_List_Call) Return(_a0 []*ent.ImportScan, _a1 uint32, _a2 error) *MockManager_List_Call

func (*MockManager_List_Call) Run

func (_c *MockManager_List_Call) Run(run func(ctx context.Context, page uint16, limit uint16)) *MockManager_List_Call

func (*MockManager_List_Call) RunAndReturn

type MockManager_StartScan_Call

type MockManager_StartScan_Call struct {
	*mock.Call
}

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

func (*MockManager_StartScan_Call) Return

func (*MockManager_StartScan_Call) Run

func (*MockManager_StartScan_Call) RunAndReturn

type MockManager_UpdateFileDecision_Call

type MockManager_UpdateFileDecision_Call struct {
	*mock.Call
}

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

func (*MockManager_UpdateFileDecision_Call) Return

func (*MockManager_UpdateFileDecision_Call) Run

Jump to

Keyboard shortcuts

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