Documentation
¶
Index ¶
- type MockImporter
- type MockImporter_Expecter
- type MockImporter_ImportMovieWithMode_Call
- func (_c *MockImporter_ImportMovieWithMode_Call) Return(_a0 library.ImportedFile, _a1 error) *MockImporter_ImportMovieWithMode_Call
- func (_c *MockImporter_ImportMovieWithMode_Call) Run(run func(ctx context.Context, srcDir string, m *ent.Movie, imdbID string, ...)) *MockImporter_ImportMovieWithMode_Call
- func (_c *MockImporter_ImportMovieWithMode_Call) RunAndReturn(...) *MockImporter_ImportMovieWithMode_Call
- type MockRenamer
- type MockRenamer_Apply_Call
- func (_c *MockRenamer_Apply_Call) Return(_a0 library.RenamePlan, _a1 error) *MockRenamer_Apply_Call
- func (_c *MockRenamer_Apply_Call) Run(run func(ctx context.Context, id uint32)) *MockRenamer_Apply_Call
- func (_c *MockRenamer_Apply_Call) RunAndReturn(run func(context.Context, uint32) (library.RenamePlan, error)) *MockRenamer_Apply_Call
- type MockRenamer_Expecter
- type MockRenamer_Preview_Call
- func (_c *MockRenamer_Preview_Call) Return(_a0 library.RenamePlan, _a1 error) *MockRenamer_Preview_Call
- func (_c *MockRenamer_Preview_Call) Run(run func(ctx context.Context, id uint32)) *MockRenamer_Preview_Call
- func (_c *MockRenamer_Preview_Call) RunAndReturn(run func(context.Context, uint32) (library.RenamePlan, error)) *MockRenamer_Preview_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockImporter ¶
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 ¶
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 (_c *MockImporter_ImportMovieWithMode_Call) Return(_a0 library.ImportedFile, _a1 error) *MockImporter_ImportMovieWithMode_Call
func (*MockImporter_ImportMovieWithMode_Call) Run ¶
func (_c *MockImporter_ImportMovieWithMode_Call) Run(run func(ctx context.Context, srcDir string, m *ent.Movie, imdbID string, modeOverride string)) *MockImporter_ImportMovieWithMode_Call
func (*MockImporter_ImportMovieWithMode_Call) RunAndReturn ¶
func (_c *MockImporter_ImportMovieWithMode_Call) RunAndReturn(run func(context.Context, string, *ent.Movie, string, string) (library.ImportedFile, error)) *MockImporter_ImportMovieWithMode_Call
type MockRenamer ¶ added in v1.2.0
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
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 (_c *MockRenamer_Apply_Call) Return(_a0 library.RenamePlan, _a1 error) *MockRenamer_Apply_Call
func (*MockRenamer_Apply_Call) Run ¶ added in v1.2.0
func (_c *MockRenamer_Apply_Call) Run(run func(ctx context.Context, id uint32)) *MockRenamer_Apply_Call
func (*MockRenamer_Apply_Call) RunAndReturn ¶ added in v1.2.0
func (_c *MockRenamer_Apply_Call) RunAndReturn(run func(context.Context, uint32) (library.RenamePlan, error)) *MockRenamer_Apply_Call
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
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 (_c *MockRenamer_Preview_Call) Return(_a0 library.RenamePlan, _a1 error) *MockRenamer_Preview_Call
func (*MockRenamer_Preview_Call) Run ¶ added in v1.2.0
func (_c *MockRenamer_Preview_Call) Run(run func(ctx context.Context, id uint32)) *MockRenamer_Preview_Call
func (*MockRenamer_Preview_Call) RunAndReturn ¶ added in v1.2.0
func (_c *MockRenamer_Preview_Call) RunAndReturn(run func(context.Context, uint32) (library.RenamePlan, error)) *MockRenamer_Preview_Call