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: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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