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
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
Click to show internal directories.
Click to hide internal directories.