mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: GPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockImporter

type MockImporter struct {
	mock.Mock
}

MockImporter is an autogenerated mock type for the Importer type

func NewMockImporter

func NewMockImporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockImporter

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

func (_m *MockImporter) EXPECT() *MockImporter_Expecter

func (*MockImporter) ImportMovieWithMode

func (_m *MockImporter) ImportMovieWithMode(ctx context.Context, srcDir string, m *ent.Movie, imdbID string, modeOverride string) (library.ImportedFile, error)

ImportMovieWithMode provides a mock function with given fields: ctx, srcDir, m, imdbID, modeOverride

type MockImporter_Expecter

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

func (*MockImporter_Expecter) ImportMovieWithMode

func (_e *MockImporter_Expecter) ImportMovieWithMode(ctx interface{}, srcDir interface{}, m interface{}, imdbID interface{}, modeOverride interface{}) *MockImporter_ImportMovieWithMode_Call

ImportMovieWithMode is a helper method to define mock.On call

  • ctx context.Context
  • srcDir string
  • m *ent.Movie
  • imdbID string
  • modeOverride string

type MockImporter_ImportMovieWithMode_Call

type MockImporter_ImportMovieWithMode_Call struct {
	*mock.Call
}

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

func (*MockImporter_ImportMovieWithMode_Call) Return

func (*MockImporter_ImportMovieWithMode_Call) Run

func (*MockImporter_ImportMovieWithMode_Call) RunAndReturn

type MockRenamer added in v1.2.0

type MockRenamer struct {
	mock.Mock
}

MockRenamer is an autogenerated mock type for the Renamer type

func NewMockRenamer added in v1.2.0

func NewMockRenamer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRenamer

NewMockRenamer creates a new instance of MockRenamer. 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 (*MockRenamer) Apply added in v1.2.0

func (_m *MockRenamer) Apply(ctx context.Context, id uint32) (library.RenamePlan, error)

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

func (*MockRenamer) EXPECT added in v1.2.0

func (_m *MockRenamer) EXPECT() *MockRenamer_Expecter

func (*MockRenamer) Preview added in v1.2.0

func (_m *MockRenamer) Preview(ctx context.Context, id uint32) (library.RenamePlan, error)

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

type MockRenamer_Apply_Call added in v1.2.0

type MockRenamer_Apply_Call struct {
	*mock.Call
}

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

func (*MockRenamer_Apply_Call) Return added in v1.2.0

func (*MockRenamer_Apply_Call) Run added in v1.2.0

func (*MockRenamer_Apply_Call) RunAndReturn added in v1.2.0

type MockRenamer_Expecter added in v1.2.0

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

func (*MockRenamer_Expecter) Apply added in v1.2.0

func (_e *MockRenamer_Expecter) Apply(ctx interface{}, id interface{}) *MockRenamer_Apply_Call

Apply is a helper method to define mock.On call

  • ctx context.Context
  • id uint32

func (*MockRenamer_Expecter) Preview added in v1.2.0

func (_e *MockRenamer_Expecter) Preview(ctx interface{}, id interface{}) *MockRenamer_Preview_Call

Preview is a helper method to define mock.On call

  • ctx context.Context
  • id uint32

type MockRenamer_Preview_Call added in v1.2.0

type MockRenamer_Preview_Call struct {
	*mock.Call
}

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

func (*MockRenamer_Preview_Call) Return added in v1.2.0

func (*MockRenamer_Preview_Call) Run added in v1.2.0

func (*MockRenamer_Preview_Call) RunAndReturn added in v1.2.0

Jump to

Keyboard shortcuts

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