mocks

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockActressAliasRepositoryInterface

type MockActressAliasRepositoryInterface struct {
	mock.Mock
}

MockActressAliasRepositoryInterface is an autogenerated mock type for the ActressAliasRepositoryInterface type

func NewMockActressAliasRepositoryInterface

func NewMockActressAliasRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockActressAliasRepositoryInterface

NewMockActressAliasRepositoryInterface creates a new instance of MockActressAliasRepositoryInterface. 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 (*MockActressAliasRepositoryInterface) Create

Create provides a mock function for the type MockActressAliasRepositoryInterface

func (*MockActressAliasRepositoryInterface) Delete

func (_mock *MockActressAliasRepositoryInterface) Delete(aliasName string) error

Delete provides a mock function for the type MockActressAliasRepositoryInterface

func (*MockActressAliasRepositoryInterface) EXPECT

func (*MockActressAliasRepositoryInterface) FindByAliasName

func (_mock *MockActressAliasRepositoryInterface) FindByAliasName(aliasName string) (*models.ActressAlias, error)

FindByAliasName provides a mock function for the type MockActressAliasRepositoryInterface

func (*MockActressAliasRepositoryInterface) FindByCanonicalName

func (_mock *MockActressAliasRepositoryInterface) FindByCanonicalName(canonicalName string) ([]models.ActressAlias, error)

FindByCanonicalName provides a mock function for the type MockActressAliasRepositoryInterface

func (*MockActressAliasRepositoryInterface) GetAliasMap

func (_mock *MockActressAliasRepositoryInterface) GetAliasMap() (map[string]string, error)

GetAliasMap provides a mock function for the type MockActressAliasRepositoryInterface

func (*MockActressAliasRepositoryInterface) List

List provides a mock function for the type MockActressAliasRepositoryInterface

func (*MockActressAliasRepositoryInterface) Upsert

Upsert provides a mock function for the type MockActressAliasRepositoryInterface

type MockActressAliasRepositoryInterface_Create_Call

type MockActressAliasRepositoryInterface_Create_Call struct {
	*mock.Call
}

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

func (*MockActressAliasRepositoryInterface_Create_Call) Return

func (*MockActressAliasRepositoryInterface_Create_Call) Run

func (*MockActressAliasRepositoryInterface_Create_Call) RunAndReturn

type MockActressAliasRepositoryInterface_Delete_Call

type MockActressAliasRepositoryInterface_Delete_Call struct {
	*mock.Call
}

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

func (*MockActressAliasRepositoryInterface_Delete_Call) Return

func (*MockActressAliasRepositoryInterface_Delete_Call) Run

func (*MockActressAliasRepositoryInterface_Delete_Call) RunAndReturn

type MockActressAliasRepositoryInterface_Expecter

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

func (*MockActressAliasRepositoryInterface_Expecter) Create

Create is a helper method to define mock.On call

  • alias *models.ActressAlias

func (*MockActressAliasRepositoryInterface_Expecter) Delete

Delete is a helper method to define mock.On call

  • aliasName string

func (*MockActressAliasRepositoryInterface_Expecter) FindByAliasName

FindByAliasName is a helper method to define mock.On call

  • aliasName string

func (*MockActressAliasRepositoryInterface_Expecter) FindByCanonicalName

FindByCanonicalName is a helper method to define mock.On call

  • canonicalName string

func (*MockActressAliasRepositoryInterface_Expecter) GetAliasMap

GetAliasMap is a helper method to define mock.On call

func (*MockActressAliasRepositoryInterface_Expecter) List

List is a helper method to define mock.On call

func (*MockActressAliasRepositoryInterface_Expecter) Upsert

Upsert is a helper method to define mock.On call

  • alias *models.ActressAlias

type MockActressAliasRepositoryInterface_FindByAliasName_Call

type MockActressAliasRepositoryInterface_FindByAliasName_Call struct {
	*mock.Call
}

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

func (*MockActressAliasRepositoryInterface_FindByAliasName_Call) Return

func (*MockActressAliasRepositoryInterface_FindByAliasName_Call) Run

func (*MockActressAliasRepositoryInterface_FindByAliasName_Call) RunAndReturn

type MockActressAliasRepositoryInterface_FindByCanonicalName_Call

type MockActressAliasRepositoryInterface_FindByCanonicalName_Call struct {
	*mock.Call
}

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

func (*MockActressAliasRepositoryInterface_FindByCanonicalName_Call) Return

func (*MockActressAliasRepositoryInterface_FindByCanonicalName_Call) Run

func (*MockActressAliasRepositoryInterface_FindByCanonicalName_Call) RunAndReturn

type MockActressAliasRepositoryInterface_GetAliasMap_Call

type MockActressAliasRepositoryInterface_GetAliasMap_Call struct {
	*mock.Call
}

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

func (*MockActressAliasRepositoryInterface_GetAliasMap_Call) Return

func (*MockActressAliasRepositoryInterface_GetAliasMap_Call) Run

func (*MockActressAliasRepositoryInterface_GetAliasMap_Call) RunAndReturn

type MockActressAliasRepositoryInterface_List_Call

type MockActressAliasRepositoryInterface_List_Call struct {
	*mock.Call
}

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

func (*MockActressAliasRepositoryInterface_List_Call) Return

func (*MockActressAliasRepositoryInterface_List_Call) Run

func (*MockActressAliasRepositoryInterface_List_Call) RunAndReturn

type MockActressAliasRepositoryInterface_Upsert_Call

type MockActressAliasRepositoryInterface_Upsert_Call struct {
	*mock.Call
}

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

func (*MockActressAliasRepositoryInterface_Upsert_Call) Return

func (*MockActressAliasRepositoryInterface_Upsert_Call) Run

func (*MockActressAliasRepositoryInterface_Upsert_Call) RunAndReturn

type MockActressRepositoryInterface

type MockActressRepositoryInterface struct {
	mock.Mock
}

MockActressRepositoryInterface is an autogenerated mock type for the ActressRepositoryInterface type

func NewMockActressRepositoryInterface

func NewMockActressRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockActressRepositoryInterface

NewMockActressRepositoryInterface creates a new instance of MockActressRepositoryInterface. 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 (*MockActressRepositoryInterface) Create

func (_mock *MockActressRepositoryInterface) Create(actress *models.Actress) error

Create provides a mock function for the type MockActressRepositoryInterface

func (*MockActressRepositoryInterface) EXPECT

func (*MockActressRepositoryInterface) FindByJapaneseName

func (_mock *MockActressRepositoryInterface) FindByJapaneseName(name string) (*models.Actress, error)

FindByJapaneseName provides a mock function for the type MockActressRepositoryInterface

func (*MockActressRepositoryInterface) FindOrCreate

func (_mock *MockActressRepositoryInterface) FindOrCreate(actress *models.Actress) error

FindOrCreate provides a mock function for the type MockActressRepositoryInterface

func (*MockActressRepositoryInterface) List

func (_mock *MockActressRepositoryInterface) List(limit int, offset int) ([]models.Actress, error)

List provides a mock function for the type MockActressRepositoryInterface

func (*MockActressRepositoryInterface) Search

func (_mock *MockActressRepositoryInterface) Search(query string) ([]models.Actress, error)

Search provides a mock function for the type MockActressRepositoryInterface

func (*MockActressRepositoryInterface) Update

func (_mock *MockActressRepositoryInterface) Update(actress *models.Actress) error

Update provides a mock function for the type MockActressRepositoryInterface

type MockActressRepositoryInterface_Create_Call

type MockActressRepositoryInterface_Create_Call struct {
	*mock.Call
}

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

func (*MockActressRepositoryInterface_Create_Call) Return

func (*MockActressRepositoryInterface_Create_Call) Run

func (*MockActressRepositoryInterface_Create_Call) RunAndReturn

type MockActressRepositoryInterface_Expecter

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

func (*MockActressRepositoryInterface_Expecter) Create

Create is a helper method to define mock.On call

  • actress *models.Actress

func (*MockActressRepositoryInterface_Expecter) FindByJapaneseName

FindByJapaneseName is a helper method to define mock.On call

  • name string

func (*MockActressRepositoryInterface_Expecter) FindOrCreate

FindOrCreate is a helper method to define mock.On call

  • actress *models.Actress

func (*MockActressRepositoryInterface_Expecter) List

func (_e *MockActressRepositoryInterface_Expecter) List(limit interface{}, offset interface{}) *MockActressRepositoryInterface_List_Call

List is a helper method to define mock.On call

  • limit int
  • offset int

func (*MockActressRepositoryInterface_Expecter) Search

Search is a helper method to define mock.On call

  • query string

func (*MockActressRepositoryInterface_Expecter) Update

Update is a helper method to define mock.On call

  • actress *models.Actress

type MockActressRepositoryInterface_FindByJapaneseName_Call

type MockActressRepositoryInterface_FindByJapaneseName_Call struct {
	*mock.Call
}

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

func (*MockActressRepositoryInterface_FindByJapaneseName_Call) Return

func (*MockActressRepositoryInterface_FindByJapaneseName_Call) Run

func (*MockActressRepositoryInterface_FindByJapaneseName_Call) RunAndReturn

type MockActressRepositoryInterface_FindOrCreate_Call

type MockActressRepositoryInterface_FindOrCreate_Call struct {
	*mock.Call
}

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

func (*MockActressRepositoryInterface_FindOrCreate_Call) Return

func (*MockActressRepositoryInterface_FindOrCreate_Call) Run

func (*MockActressRepositoryInterface_FindOrCreate_Call) RunAndReturn

type MockActressRepositoryInterface_List_Call

type MockActressRepositoryInterface_List_Call struct {
	*mock.Call
}

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

func (*MockActressRepositoryInterface_List_Call) Return

func (*MockActressRepositoryInterface_List_Call) Run

func (*MockActressRepositoryInterface_List_Call) RunAndReturn

type MockActressRepositoryInterface_Search_Call

type MockActressRepositoryInterface_Search_Call struct {
	*mock.Call
}

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

func (*MockActressRepositoryInterface_Search_Call) Return

func (*MockActressRepositoryInterface_Search_Call) Run

func (*MockActressRepositoryInterface_Search_Call) RunAndReturn

type MockActressRepositoryInterface_Update_Call

type MockActressRepositoryInterface_Update_Call struct {
	*mock.Call
}

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

func (*MockActressRepositoryInterface_Update_Call) Return

func (*MockActressRepositoryInterface_Update_Call) Run

func (*MockActressRepositoryInterface_Update_Call) RunAndReturn

type MockAggregatorInterface

type MockAggregatorInterface struct {
	mock.Mock
}

MockAggregatorInterface is an autogenerated mock type for the AggregatorInterface type

func NewMockAggregatorInterface

func NewMockAggregatorInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAggregatorInterface

NewMockAggregatorInterface creates a new instance of MockAggregatorInterface. 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 (*MockAggregatorInterface) Aggregate

func (_mock *MockAggregatorInterface) Aggregate(results []*models.ScraperResult) (*models.Movie, error)

Aggregate provides a mock function for the type MockAggregatorInterface

func (*MockAggregatorInterface) EXPECT

func (*MockAggregatorInterface) GetResolvedPriorities

func (_mock *MockAggregatorInterface) GetResolvedPriorities() map[string][]string

GetResolvedPriorities provides a mock function for the type MockAggregatorInterface

type MockAggregatorInterface_Aggregate_Call

type MockAggregatorInterface_Aggregate_Call struct {
	*mock.Call
}

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

func (*MockAggregatorInterface_Aggregate_Call) Return

func (*MockAggregatorInterface_Aggregate_Call) Run

func (*MockAggregatorInterface_Aggregate_Call) RunAndReturn

type MockAggregatorInterface_Expecter

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

func (*MockAggregatorInterface_Expecter) Aggregate

Aggregate is a helper method to define mock.On call

  • results []*models.ScraperResult

func (*MockAggregatorInterface_Expecter) GetResolvedPriorities

GetResolvedPriorities is a helper method to define mock.On call

type MockAggregatorInterface_GetResolvedPriorities_Call

type MockAggregatorInterface_GetResolvedPriorities_Call struct {
	*mock.Call
}

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

func (*MockAggregatorInterface_GetResolvedPriorities_Call) Return

func (*MockAggregatorInterface_GetResolvedPriorities_Call) Run

func (*MockAggregatorInterface_GetResolvedPriorities_Call) RunAndReturn

type MockContentIDMappingRepositoryInterface

type MockContentIDMappingRepositoryInterface struct {
	mock.Mock
}

MockContentIDMappingRepositoryInterface is an autogenerated mock type for the ContentIDMappingRepositoryInterface type

func NewMockContentIDMappingRepositoryInterface

func NewMockContentIDMappingRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockContentIDMappingRepositoryInterface

NewMockContentIDMappingRepositoryInterface creates a new instance of MockContentIDMappingRepositoryInterface. 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 (*MockContentIDMappingRepositoryInterface) Create

Create provides a mock function for the type MockContentIDMappingRepositoryInterface

func (*MockContentIDMappingRepositoryInterface) Delete

func (_mock *MockContentIDMappingRepositoryInterface) Delete(searchID string) error

Delete provides a mock function for the type MockContentIDMappingRepositoryInterface

func (*MockContentIDMappingRepositoryInterface) EXPECT

func (*MockContentIDMappingRepositoryInterface) FindBySearchID

func (_mock *MockContentIDMappingRepositoryInterface) FindBySearchID(searchID string) (*models.ContentIDMapping, error)

FindBySearchID provides a mock function for the type MockContentIDMappingRepositoryInterface

func (*MockContentIDMappingRepositoryInterface) GetAll

GetAll provides a mock function for the type MockContentIDMappingRepositoryInterface

type MockContentIDMappingRepositoryInterface_Create_Call

type MockContentIDMappingRepositoryInterface_Create_Call struct {
	*mock.Call
}

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

func (*MockContentIDMappingRepositoryInterface_Create_Call) Return

func (*MockContentIDMappingRepositoryInterface_Create_Call) Run

func (*MockContentIDMappingRepositoryInterface_Create_Call) RunAndReturn

type MockContentIDMappingRepositoryInterface_Delete_Call

type MockContentIDMappingRepositoryInterface_Delete_Call struct {
	*mock.Call
}

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

func (*MockContentIDMappingRepositoryInterface_Delete_Call) Return

func (*MockContentIDMappingRepositoryInterface_Delete_Call) Run

func (*MockContentIDMappingRepositoryInterface_Delete_Call) RunAndReturn

type MockContentIDMappingRepositoryInterface_Expecter

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

func (*MockContentIDMappingRepositoryInterface_Expecter) Create

Create is a helper method to define mock.On call

  • mapping *models.ContentIDMapping

func (*MockContentIDMappingRepositoryInterface_Expecter) Delete

Delete is a helper method to define mock.On call

  • searchID string

func (*MockContentIDMappingRepositoryInterface_Expecter) FindBySearchID

FindBySearchID is a helper method to define mock.On call

  • searchID string

func (*MockContentIDMappingRepositoryInterface_Expecter) GetAll

GetAll is a helper method to define mock.On call

type MockContentIDMappingRepositoryInterface_FindBySearchID_Call

type MockContentIDMappingRepositoryInterface_FindBySearchID_Call struct {
	*mock.Call
}

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

func (*MockContentIDMappingRepositoryInterface_FindBySearchID_Call) Return

func (*MockContentIDMappingRepositoryInterface_FindBySearchID_Call) Run

func (*MockContentIDMappingRepositoryInterface_FindBySearchID_Call) RunAndReturn

type MockContentIDMappingRepositoryInterface_GetAll_Call

type MockContentIDMappingRepositoryInterface_GetAll_Call struct {
	*mock.Call
}

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

func (*MockContentIDMappingRepositoryInterface_GetAll_Call) Return

func (*MockContentIDMappingRepositoryInterface_GetAll_Call) Run

func (*MockContentIDMappingRepositoryInterface_GetAll_Call) RunAndReturn

type MockGenreReplacementRepositoryInterface

type MockGenreReplacementRepositoryInterface struct {
	mock.Mock
}

MockGenreReplacementRepositoryInterface is an autogenerated mock type for the GenreReplacementRepositoryInterface type

func NewMockGenreReplacementRepositoryInterface

func NewMockGenreReplacementRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGenreReplacementRepositoryInterface

NewMockGenreReplacementRepositoryInterface creates a new instance of MockGenreReplacementRepositoryInterface. 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 (*MockGenreReplacementRepositoryInterface) Create

Create provides a mock function for the type MockGenreReplacementRepositoryInterface

func (*MockGenreReplacementRepositoryInterface) Delete

func (_mock *MockGenreReplacementRepositoryInterface) Delete(original string) error

Delete provides a mock function for the type MockGenreReplacementRepositoryInterface

func (*MockGenreReplacementRepositoryInterface) EXPECT

func (*MockGenreReplacementRepositoryInterface) FindByOriginal

func (_mock *MockGenreReplacementRepositoryInterface) FindByOriginal(original string) (*models.GenreReplacement, error)

FindByOriginal provides a mock function for the type MockGenreReplacementRepositoryInterface

func (*MockGenreReplacementRepositoryInterface) GetReplacementMap

func (_mock *MockGenreReplacementRepositoryInterface) GetReplacementMap() (map[string]string, error)

GetReplacementMap provides a mock function for the type MockGenreReplacementRepositoryInterface

func (*MockGenreReplacementRepositoryInterface) List

List provides a mock function for the type MockGenreReplacementRepositoryInterface

func (*MockGenreReplacementRepositoryInterface) Upsert

Upsert provides a mock function for the type MockGenreReplacementRepositoryInterface

type MockGenreReplacementRepositoryInterface_Create_Call

type MockGenreReplacementRepositoryInterface_Create_Call struct {
	*mock.Call
}

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

func (*MockGenreReplacementRepositoryInterface_Create_Call) Return

func (*MockGenreReplacementRepositoryInterface_Create_Call) Run

func (*MockGenreReplacementRepositoryInterface_Create_Call) RunAndReturn

type MockGenreReplacementRepositoryInterface_Delete_Call

type MockGenreReplacementRepositoryInterface_Delete_Call struct {
	*mock.Call
}

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

func (*MockGenreReplacementRepositoryInterface_Delete_Call) Return

func (*MockGenreReplacementRepositoryInterface_Delete_Call) Run

func (*MockGenreReplacementRepositoryInterface_Delete_Call) RunAndReturn

type MockGenreReplacementRepositoryInterface_Expecter

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

func (*MockGenreReplacementRepositoryInterface_Expecter) Create

Create is a helper method to define mock.On call

  • replacement *models.GenreReplacement

func (*MockGenreReplacementRepositoryInterface_Expecter) Delete

Delete is a helper method to define mock.On call

  • original string

func (*MockGenreReplacementRepositoryInterface_Expecter) FindByOriginal

FindByOriginal is a helper method to define mock.On call

  • original string

func (*MockGenreReplacementRepositoryInterface_Expecter) GetReplacementMap

GetReplacementMap is a helper method to define mock.On call

func (*MockGenreReplacementRepositoryInterface_Expecter) List

List is a helper method to define mock.On call

func (*MockGenreReplacementRepositoryInterface_Expecter) Upsert

Upsert is a helper method to define mock.On call

  • replacement *models.GenreReplacement

type MockGenreReplacementRepositoryInterface_FindByOriginal_Call

type MockGenreReplacementRepositoryInterface_FindByOriginal_Call struct {
	*mock.Call
}

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

func (*MockGenreReplacementRepositoryInterface_FindByOriginal_Call) Return

func (*MockGenreReplacementRepositoryInterface_FindByOriginal_Call) Run

func (*MockGenreReplacementRepositoryInterface_FindByOriginal_Call) RunAndReturn

type MockGenreReplacementRepositoryInterface_GetReplacementMap_Call

type MockGenreReplacementRepositoryInterface_GetReplacementMap_Call struct {
	*mock.Call
}

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

func (*MockGenreReplacementRepositoryInterface_GetReplacementMap_Call) Return

func (*MockGenreReplacementRepositoryInterface_GetReplacementMap_Call) Run

func (*MockGenreReplacementRepositoryInterface_GetReplacementMap_Call) RunAndReturn

type MockGenreReplacementRepositoryInterface_List_Call

type MockGenreReplacementRepositoryInterface_List_Call struct {
	*mock.Call
}

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

func (*MockGenreReplacementRepositoryInterface_List_Call) Return

func (*MockGenreReplacementRepositoryInterface_List_Call) Run

func (*MockGenreReplacementRepositoryInterface_List_Call) RunAndReturn

type MockGenreReplacementRepositoryInterface_Upsert_Call

type MockGenreReplacementRepositoryInterface_Upsert_Call struct {
	*mock.Call
}

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

func (*MockGenreReplacementRepositoryInterface_Upsert_Call) Return

func (*MockGenreReplacementRepositoryInterface_Upsert_Call) Run

func (*MockGenreReplacementRepositoryInterface_Upsert_Call) RunAndReturn

type MockHTTPClient

type MockHTTPClient struct {
	mock.Mock
}

MockHTTPClient is an autogenerated mock type for the HTTPClient type

func NewMockHTTPClient

func NewMockHTTPClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHTTPClient

NewMockHTTPClient creates a new instance of MockHTTPClient. 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 (*MockHTTPClient) Do

func (_mock *MockHTTPClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function for the type MockHTTPClient

func (*MockHTTPClient) EXPECT

type MockHTTPClient_Do_Call

type MockHTTPClient_Do_Call struct {
	*mock.Call
}

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

func (*MockHTTPClient_Do_Call) Return

func (_c *MockHTTPClient_Do_Call) Return(response *http.Response, err error) *MockHTTPClient_Do_Call

func (*MockHTTPClient_Do_Call) Run

func (_c *MockHTTPClient_Do_Call) Run(run func(req *http.Request)) *MockHTTPClient_Do_Call

func (*MockHTTPClient_Do_Call) RunAndReturn

func (_c *MockHTTPClient_Do_Call) RunAndReturn(run func(req *http.Request) (*http.Response, error)) *MockHTTPClient_Do_Call

type MockHTTPClient_Expecter

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

func (*MockHTTPClient_Expecter) Do

func (_e *MockHTTPClient_Expecter) Do(req interface{}) *MockHTTPClient_Do_Call

Do is a helper method to define mock.On call

  • req *http.Request

type MockHistoryRepositoryInterface

type MockHistoryRepositoryInterface struct {
	mock.Mock
}

MockHistoryRepositoryInterface is an autogenerated mock type for the HistoryRepositoryInterface type

func NewMockHistoryRepositoryInterface

func NewMockHistoryRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHistoryRepositoryInterface

NewMockHistoryRepositoryInterface creates a new instance of MockHistoryRepositoryInterface. 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 (*MockHistoryRepositoryInterface) Count

func (_mock *MockHistoryRepositoryInterface) Count() (int64, error)

Count provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) CountByOperation

func (_mock *MockHistoryRepositoryInterface) CountByOperation(operation string) (int64, error)

CountByOperation provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) CountByStatus

func (_mock *MockHistoryRepositoryInterface) CountByStatus(status string) (int64, error)

CountByStatus provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) Create

func (_mock *MockHistoryRepositoryInterface) Create(history *models.History) error

Create provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) Delete

func (_mock *MockHistoryRepositoryInterface) Delete(id uint) error

Delete provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) DeleteByMovieID

func (_mock *MockHistoryRepositoryInterface) DeleteByMovieID(movieID string) error

DeleteByMovieID provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) DeleteOlderThan

func (_mock *MockHistoryRepositoryInterface) DeleteOlderThan(date time.Time) error

DeleteOlderThan provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) EXPECT

func (*MockHistoryRepositoryInterface) FindByDateRange

func (_mock *MockHistoryRepositoryInterface) FindByDateRange(start time.Time, end time.Time) ([]models.History, error)

FindByDateRange provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) FindByID

func (_mock *MockHistoryRepositoryInterface) FindByID(id uint) (*models.History, error)

FindByID provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) FindByMovieID

func (_mock *MockHistoryRepositoryInterface) FindByMovieID(movieID string) ([]models.History, error)

FindByMovieID provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) FindByOperation

func (_mock *MockHistoryRepositoryInterface) FindByOperation(operation string, limit int) ([]models.History, error)

FindByOperation provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) FindByStatus

func (_mock *MockHistoryRepositoryInterface) FindByStatus(status string, limit int) ([]models.History, error)

FindByStatus provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) FindRecent

func (_mock *MockHistoryRepositoryInterface) FindRecent(limit int) ([]models.History, error)

FindRecent provides a mock function for the type MockHistoryRepositoryInterface

func (*MockHistoryRepositoryInterface) List

func (_mock *MockHistoryRepositoryInterface) List(limit int, offset int) ([]models.History, error)

List provides a mock function for the type MockHistoryRepositoryInterface

type MockHistoryRepositoryInterface_CountByOperation_Call

type MockHistoryRepositoryInterface_CountByOperation_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_CountByOperation_Call) Return

func (*MockHistoryRepositoryInterface_CountByOperation_Call) Run

func (*MockHistoryRepositoryInterface_CountByOperation_Call) RunAndReturn

type MockHistoryRepositoryInterface_CountByStatus_Call

type MockHistoryRepositoryInterface_CountByStatus_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_CountByStatus_Call) Return

func (*MockHistoryRepositoryInterface_CountByStatus_Call) Run

func (*MockHistoryRepositoryInterface_CountByStatus_Call) RunAndReturn

type MockHistoryRepositoryInterface_Count_Call

type MockHistoryRepositoryInterface_Count_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_Count_Call) Return

func (*MockHistoryRepositoryInterface_Count_Call) Run

func (*MockHistoryRepositoryInterface_Count_Call) RunAndReturn

type MockHistoryRepositoryInterface_Create_Call

type MockHistoryRepositoryInterface_Create_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_Create_Call) Return

func (*MockHistoryRepositoryInterface_Create_Call) Run

func (*MockHistoryRepositoryInterface_Create_Call) RunAndReturn

type MockHistoryRepositoryInterface_DeleteByMovieID_Call

type MockHistoryRepositoryInterface_DeleteByMovieID_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_DeleteByMovieID_Call) Return

func (*MockHistoryRepositoryInterface_DeleteByMovieID_Call) Run

func (*MockHistoryRepositoryInterface_DeleteByMovieID_Call) RunAndReturn

type MockHistoryRepositoryInterface_DeleteOlderThan_Call

type MockHistoryRepositoryInterface_DeleteOlderThan_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_DeleteOlderThan_Call) Return

func (*MockHistoryRepositoryInterface_DeleteOlderThan_Call) Run

func (*MockHistoryRepositoryInterface_DeleteOlderThan_Call) RunAndReturn

type MockHistoryRepositoryInterface_Delete_Call

type MockHistoryRepositoryInterface_Delete_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_Delete_Call) Return

func (*MockHistoryRepositoryInterface_Delete_Call) Run

func (*MockHistoryRepositoryInterface_Delete_Call) RunAndReturn

type MockHistoryRepositoryInterface_Expecter

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

func (*MockHistoryRepositoryInterface_Expecter) Count

Count is a helper method to define mock.On call

func (*MockHistoryRepositoryInterface_Expecter) CountByOperation

CountByOperation is a helper method to define mock.On call

  • operation string

func (*MockHistoryRepositoryInterface_Expecter) CountByStatus

CountByStatus is a helper method to define mock.On call

  • status string

func (*MockHistoryRepositoryInterface_Expecter) Create

Create is a helper method to define mock.On call

  • history *models.History

func (*MockHistoryRepositoryInterface_Expecter) Delete

Delete is a helper method to define mock.On call

  • id uint

func (*MockHistoryRepositoryInterface_Expecter) DeleteByMovieID

DeleteByMovieID is a helper method to define mock.On call

  • movieID string

func (*MockHistoryRepositoryInterface_Expecter) DeleteOlderThan

DeleteOlderThan is a helper method to define mock.On call

  • date time.Time

func (*MockHistoryRepositoryInterface_Expecter) FindByDateRange

func (_e *MockHistoryRepositoryInterface_Expecter) FindByDateRange(start interface{}, end interface{}) *MockHistoryRepositoryInterface_FindByDateRange_Call

FindByDateRange is a helper method to define mock.On call

  • start time.Time
  • end time.Time

func (*MockHistoryRepositoryInterface_Expecter) FindByID

FindByID is a helper method to define mock.On call

  • id uint

func (*MockHistoryRepositoryInterface_Expecter) FindByMovieID

FindByMovieID is a helper method to define mock.On call

  • movieID string

func (*MockHistoryRepositoryInterface_Expecter) FindByOperation

func (_e *MockHistoryRepositoryInterface_Expecter) FindByOperation(operation interface{}, limit interface{}) *MockHistoryRepositoryInterface_FindByOperation_Call

FindByOperation is a helper method to define mock.On call

  • operation string
  • limit int

func (*MockHistoryRepositoryInterface_Expecter) FindByStatus

func (_e *MockHistoryRepositoryInterface_Expecter) FindByStatus(status interface{}, limit interface{}) *MockHistoryRepositoryInterface_FindByStatus_Call

FindByStatus is a helper method to define mock.On call

  • status string
  • limit int

func (*MockHistoryRepositoryInterface_Expecter) FindRecent

FindRecent is a helper method to define mock.On call

  • limit int

func (*MockHistoryRepositoryInterface_Expecter) List

func (_e *MockHistoryRepositoryInterface_Expecter) List(limit interface{}, offset interface{}) *MockHistoryRepositoryInterface_List_Call

List is a helper method to define mock.On call

  • limit int
  • offset int

type MockHistoryRepositoryInterface_FindByDateRange_Call

type MockHistoryRepositoryInterface_FindByDateRange_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_FindByDateRange_Call) Return

func (*MockHistoryRepositoryInterface_FindByDateRange_Call) Run

func (*MockHistoryRepositoryInterface_FindByDateRange_Call) RunAndReturn

type MockHistoryRepositoryInterface_FindByID_Call

type MockHistoryRepositoryInterface_FindByID_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_FindByID_Call) Return

func (*MockHistoryRepositoryInterface_FindByID_Call) Run

func (*MockHistoryRepositoryInterface_FindByID_Call) RunAndReturn

type MockHistoryRepositoryInterface_FindByMovieID_Call

type MockHistoryRepositoryInterface_FindByMovieID_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_FindByMovieID_Call) Return

func (*MockHistoryRepositoryInterface_FindByMovieID_Call) Run

func (*MockHistoryRepositoryInterface_FindByMovieID_Call) RunAndReturn

type MockHistoryRepositoryInterface_FindByOperation_Call

type MockHistoryRepositoryInterface_FindByOperation_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_FindByOperation_Call) Return

func (*MockHistoryRepositoryInterface_FindByOperation_Call) Run

func (*MockHistoryRepositoryInterface_FindByOperation_Call) RunAndReturn

type MockHistoryRepositoryInterface_FindByStatus_Call

type MockHistoryRepositoryInterface_FindByStatus_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_FindByStatus_Call) Return

func (*MockHistoryRepositoryInterface_FindByStatus_Call) Run

func (*MockHistoryRepositoryInterface_FindByStatus_Call) RunAndReturn

type MockHistoryRepositoryInterface_FindRecent_Call

type MockHistoryRepositoryInterface_FindRecent_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_FindRecent_Call) Return

func (*MockHistoryRepositoryInterface_FindRecent_Call) Run

func (*MockHistoryRepositoryInterface_FindRecent_Call) RunAndReturn

type MockHistoryRepositoryInterface_List_Call

type MockHistoryRepositoryInterface_List_Call struct {
	*mock.Call
}

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

func (*MockHistoryRepositoryInterface_List_Call) Return

func (*MockHistoryRepositoryInterface_List_Call) Run

func (*MockHistoryRepositoryInterface_List_Call) RunAndReturn

type MockMovieRepositoryInterface

type MockMovieRepositoryInterface struct {
	mock.Mock
}

MockMovieRepositoryInterface is an autogenerated mock type for the MovieRepositoryInterface type

func NewMockMovieRepositoryInterface

func NewMockMovieRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMovieRepositoryInterface

NewMockMovieRepositoryInterface creates a new instance of MockMovieRepositoryInterface. 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 (*MockMovieRepositoryInterface) Create

func (_mock *MockMovieRepositoryInterface) Create(movie *models.Movie) error

Create provides a mock function for the type MockMovieRepositoryInterface

func (*MockMovieRepositoryInterface) Delete

func (_mock *MockMovieRepositoryInterface) Delete(id string) error

Delete provides a mock function for the type MockMovieRepositoryInterface

func (*MockMovieRepositoryInterface) EXPECT

func (*MockMovieRepositoryInterface) FindByContentID

func (_mock *MockMovieRepositoryInterface) FindByContentID(contentID string) (*models.Movie, error)

FindByContentID provides a mock function for the type MockMovieRepositoryInterface

func (*MockMovieRepositoryInterface) FindByID

func (_mock *MockMovieRepositoryInterface) FindByID(id string) (*models.Movie, error)

FindByID provides a mock function for the type MockMovieRepositoryInterface

func (*MockMovieRepositoryInterface) List

func (_mock *MockMovieRepositoryInterface) List(limit int, offset int) ([]models.Movie, error)

List provides a mock function for the type MockMovieRepositoryInterface

func (*MockMovieRepositoryInterface) Update

func (_mock *MockMovieRepositoryInterface) Update(movie *models.Movie) error

Update provides a mock function for the type MockMovieRepositoryInterface

func (*MockMovieRepositoryInterface) Upsert

func (_mock *MockMovieRepositoryInterface) Upsert(movie *models.Movie) error

Upsert provides a mock function for the type MockMovieRepositoryInterface

type MockMovieRepositoryInterface_Create_Call

type MockMovieRepositoryInterface_Create_Call struct {
	*mock.Call
}

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

func (*MockMovieRepositoryInterface_Create_Call) Return

func (*MockMovieRepositoryInterface_Create_Call) Run

func (*MockMovieRepositoryInterface_Create_Call) RunAndReturn

type MockMovieRepositoryInterface_Delete_Call

type MockMovieRepositoryInterface_Delete_Call struct {
	*mock.Call
}

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

func (*MockMovieRepositoryInterface_Delete_Call) Return

func (*MockMovieRepositoryInterface_Delete_Call) Run

func (*MockMovieRepositoryInterface_Delete_Call) RunAndReturn

type MockMovieRepositoryInterface_Expecter

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

func (*MockMovieRepositoryInterface_Expecter) Create

Create is a helper method to define mock.On call

  • movie *models.Movie

func (*MockMovieRepositoryInterface_Expecter) Delete

Delete is a helper method to define mock.On call

  • id string

func (*MockMovieRepositoryInterface_Expecter) FindByContentID

FindByContentID is a helper method to define mock.On call

  • contentID string

func (*MockMovieRepositoryInterface_Expecter) FindByID

FindByID is a helper method to define mock.On call

  • id string

func (*MockMovieRepositoryInterface_Expecter) List

func (_e *MockMovieRepositoryInterface_Expecter) List(limit interface{}, offset interface{}) *MockMovieRepositoryInterface_List_Call

List is a helper method to define mock.On call

  • limit int
  • offset int

func (*MockMovieRepositoryInterface_Expecter) Update

Update is a helper method to define mock.On call

  • movie *models.Movie

func (*MockMovieRepositoryInterface_Expecter) Upsert

Upsert is a helper method to define mock.On call

  • movie *models.Movie

type MockMovieRepositoryInterface_FindByContentID_Call

type MockMovieRepositoryInterface_FindByContentID_Call struct {
	*mock.Call
}

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

func (*MockMovieRepositoryInterface_FindByContentID_Call) Return

func (*MockMovieRepositoryInterface_FindByContentID_Call) Run

func (*MockMovieRepositoryInterface_FindByContentID_Call) RunAndReturn

type MockMovieRepositoryInterface_FindByID_Call

type MockMovieRepositoryInterface_FindByID_Call struct {
	*mock.Call
}

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

func (*MockMovieRepositoryInterface_FindByID_Call) Return

func (*MockMovieRepositoryInterface_FindByID_Call) Run

func (*MockMovieRepositoryInterface_FindByID_Call) RunAndReturn

type MockMovieRepositoryInterface_List_Call

type MockMovieRepositoryInterface_List_Call struct {
	*mock.Call
}

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

func (*MockMovieRepositoryInterface_List_Call) Return

func (*MockMovieRepositoryInterface_List_Call) Run

func (*MockMovieRepositoryInterface_List_Call) RunAndReturn

type MockMovieRepositoryInterface_Update_Call

type MockMovieRepositoryInterface_Update_Call struct {
	*mock.Call
}

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

func (*MockMovieRepositoryInterface_Update_Call) Return

func (*MockMovieRepositoryInterface_Update_Call) Run

func (*MockMovieRepositoryInterface_Update_Call) RunAndReturn

type MockMovieRepositoryInterface_Upsert_Call

type MockMovieRepositoryInterface_Upsert_Call struct {
	*mock.Call
}

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

func (*MockMovieRepositoryInterface_Upsert_Call) Return

func (*MockMovieRepositoryInterface_Upsert_Call) Run

func (*MockMovieRepositoryInterface_Upsert_Call) RunAndReturn

type MockMovieTagRepositoryInterface

type MockMovieTagRepositoryInterface struct {
	mock.Mock
}

MockMovieTagRepositoryInterface is an autogenerated mock type for the MovieTagRepositoryInterface type

func NewMockMovieTagRepositoryInterface

func NewMockMovieTagRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMovieTagRepositoryInterface

NewMockMovieTagRepositoryInterface creates a new instance of MockMovieTagRepositoryInterface. 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 (*MockMovieTagRepositoryInterface) AddTag

func (_mock *MockMovieTagRepositoryInterface) AddTag(movieID string, tag string) error

AddTag provides a mock function for the type MockMovieTagRepositoryInterface

func (*MockMovieTagRepositoryInterface) EXPECT

func (*MockMovieTagRepositoryInterface) GetMoviesWithTag

func (_mock *MockMovieTagRepositoryInterface) GetMoviesWithTag(tag string) ([]string, error)

GetMoviesWithTag provides a mock function for the type MockMovieTagRepositoryInterface

func (*MockMovieTagRepositoryInterface) GetTagsForMovie

func (_mock *MockMovieTagRepositoryInterface) GetTagsForMovie(movieID string) ([]string, error)

GetTagsForMovie provides a mock function for the type MockMovieTagRepositoryInterface

func (*MockMovieTagRepositoryInterface) GetUniqueTagsList

func (_mock *MockMovieTagRepositoryInterface) GetUniqueTagsList() ([]string, error)

GetUniqueTagsList provides a mock function for the type MockMovieTagRepositoryInterface

func (*MockMovieTagRepositoryInterface) ListAll

func (_mock *MockMovieTagRepositoryInterface) ListAll() (map[string][]string, error)

ListAll provides a mock function for the type MockMovieTagRepositoryInterface

func (*MockMovieTagRepositoryInterface) RemoveAllTags

func (_mock *MockMovieTagRepositoryInterface) RemoveAllTags(movieID string) error

RemoveAllTags provides a mock function for the type MockMovieTagRepositoryInterface

func (*MockMovieTagRepositoryInterface) RemoveTag

func (_mock *MockMovieTagRepositoryInterface) RemoveTag(movieID string, tag string) error

RemoveTag provides a mock function for the type MockMovieTagRepositoryInterface

type MockMovieTagRepositoryInterface_AddTag_Call

type MockMovieTagRepositoryInterface_AddTag_Call struct {
	*mock.Call
}

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

func (*MockMovieTagRepositoryInterface_AddTag_Call) Return

func (*MockMovieTagRepositoryInterface_AddTag_Call) Run

func (*MockMovieTagRepositoryInterface_AddTag_Call) RunAndReturn

type MockMovieTagRepositoryInterface_Expecter

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

func (*MockMovieTagRepositoryInterface_Expecter) AddTag

func (_e *MockMovieTagRepositoryInterface_Expecter) AddTag(movieID interface{}, tag interface{}) *MockMovieTagRepositoryInterface_AddTag_Call

AddTag is a helper method to define mock.On call

  • movieID string
  • tag string

func (*MockMovieTagRepositoryInterface_Expecter) GetMoviesWithTag

GetMoviesWithTag is a helper method to define mock.On call

  • tag string

func (*MockMovieTagRepositoryInterface_Expecter) GetTagsForMovie

GetTagsForMovie is a helper method to define mock.On call

  • movieID string

func (*MockMovieTagRepositoryInterface_Expecter) GetUniqueTagsList

GetUniqueTagsList is a helper method to define mock.On call

func (*MockMovieTagRepositoryInterface_Expecter) ListAll

ListAll is a helper method to define mock.On call

func (*MockMovieTagRepositoryInterface_Expecter) RemoveAllTags

RemoveAllTags is a helper method to define mock.On call

  • movieID string

func (*MockMovieTagRepositoryInterface_Expecter) RemoveTag

func (_e *MockMovieTagRepositoryInterface_Expecter) RemoveTag(movieID interface{}, tag interface{}) *MockMovieTagRepositoryInterface_RemoveTag_Call

RemoveTag is a helper method to define mock.On call

  • movieID string
  • tag string

type MockMovieTagRepositoryInterface_GetMoviesWithTag_Call

type MockMovieTagRepositoryInterface_GetMoviesWithTag_Call struct {
	*mock.Call
}

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

func (*MockMovieTagRepositoryInterface_GetMoviesWithTag_Call) Return

func (*MockMovieTagRepositoryInterface_GetMoviesWithTag_Call) Run

func (*MockMovieTagRepositoryInterface_GetMoviesWithTag_Call) RunAndReturn

type MockMovieTagRepositoryInterface_GetTagsForMovie_Call

type MockMovieTagRepositoryInterface_GetTagsForMovie_Call struct {
	*mock.Call
}

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

func (*MockMovieTagRepositoryInterface_GetTagsForMovie_Call) Return

func (*MockMovieTagRepositoryInterface_GetTagsForMovie_Call) Run

func (*MockMovieTagRepositoryInterface_GetTagsForMovie_Call) RunAndReturn

type MockMovieTagRepositoryInterface_GetUniqueTagsList_Call

type MockMovieTagRepositoryInterface_GetUniqueTagsList_Call struct {
	*mock.Call
}

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

func (*MockMovieTagRepositoryInterface_GetUniqueTagsList_Call) Return

func (*MockMovieTagRepositoryInterface_GetUniqueTagsList_Call) Run

func (*MockMovieTagRepositoryInterface_GetUniqueTagsList_Call) RunAndReturn

type MockMovieTagRepositoryInterface_ListAll_Call

type MockMovieTagRepositoryInterface_ListAll_Call struct {
	*mock.Call
}

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

func (*MockMovieTagRepositoryInterface_ListAll_Call) Return

func (*MockMovieTagRepositoryInterface_ListAll_Call) Run

func (*MockMovieTagRepositoryInterface_ListAll_Call) RunAndReturn

type MockMovieTagRepositoryInterface_RemoveAllTags_Call

type MockMovieTagRepositoryInterface_RemoveAllTags_Call struct {
	*mock.Call
}

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

func (*MockMovieTagRepositoryInterface_RemoveAllTags_Call) Return

func (*MockMovieTagRepositoryInterface_RemoveAllTags_Call) Run

func (*MockMovieTagRepositoryInterface_RemoveAllTags_Call) RunAndReturn

type MockMovieTagRepositoryInterface_RemoveTag_Call

type MockMovieTagRepositoryInterface_RemoveTag_Call struct {
	*mock.Call
}

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

func (*MockMovieTagRepositoryInterface_RemoveTag_Call) Return

func (*MockMovieTagRepositoryInterface_RemoveTag_Call) Run

func (*MockMovieTagRepositoryInterface_RemoveTag_Call) RunAndReturn

type MockMovieTranslationRepositoryInterface

type MockMovieTranslationRepositoryInterface struct {
	mock.Mock
}

MockMovieTranslationRepositoryInterface is an autogenerated mock type for the MovieTranslationRepositoryInterface type

func NewMockMovieTranslationRepositoryInterface

func NewMockMovieTranslationRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMovieTranslationRepositoryInterface

NewMockMovieTranslationRepositoryInterface creates a new instance of MockMovieTranslationRepositoryInterface. 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 (*MockMovieTranslationRepositoryInterface) Delete

func (_mock *MockMovieTranslationRepositoryInterface) Delete(movieID string, language string) error

Delete provides a mock function for the type MockMovieTranslationRepositoryInterface

func (*MockMovieTranslationRepositoryInterface) EXPECT

func (*MockMovieTranslationRepositoryInterface) FindAllByMovie

func (_mock *MockMovieTranslationRepositoryInterface) FindAllByMovie(movieID string) ([]models.MovieTranslation, error)

FindAllByMovie provides a mock function for the type MockMovieTranslationRepositoryInterface

func (*MockMovieTranslationRepositoryInterface) FindByMovieAndLanguage

func (_mock *MockMovieTranslationRepositoryInterface) FindByMovieAndLanguage(movieID string, language string) (*models.MovieTranslation, error)

FindByMovieAndLanguage provides a mock function for the type MockMovieTranslationRepositoryInterface

func (*MockMovieTranslationRepositoryInterface) Upsert

Upsert provides a mock function for the type MockMovieTranslationRepositoryInterface

func (*MockMovieTranslationRepositoryInterface) UpsertTx

func (_mock *MockMovieTranslationRepositoryInterface) UpsertTx(tx *gorm.DB, translation *models.MovieTranslation) error

UpsertTx provides a mock function for the type MockMovieTranslationRepositoryInterface

type MockMovieTranslationRepositoryInterface_Delete_Call

type MockMovieTranslationRepositoryInterface_Delete_Call struct {
	*mock.Call
}

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

func (*MockMovieTranslationRepositoryInterface_Delete_Call) Return

func (*MockMovieTranslationRepositoryInterface_Delete_Call) Run

func (*MockMovieTranslationRepositoryInterface_Delete_Call) RunAndReturn

type MockMovieTranslationRepositoryInterface_Expecter

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

func (*MockMovieTranslationRepositoryInterface_Expecter) Delete

Delete is a helper method to define mock.On call

  • movieID string
  • language string

func (*MockMovieTranslationRepositoryInterface_Expecter) FindAllByMovie

FindAllByMovie is a helper method to define mock.On call

  • movieID string

func (*MockMovieTranslationRepositoryInterface_Expecter) FindByMovieAndLanguage

func (_e *MockMovieTranslationRepositoryInterface_Expecter) FindByMovieAndLanguage(movieID interface{}, language interface{}) *MockMovieTranslationRepositoryInterface_FindByMovieAndLanguage_Call

FindByMovieAndLanguage is a helper method to define mock.On call

  • movieID string
  • language string

func (*MockMovieTranslationRepositoryInterface_Expecter) Upsert

Upsert is a helper method to define mock.On call

  • translation *models.MovieTranslation

func (*MockMovieTranslationRepositoryInterface_Expecter) UpsertTx

UpsertTx is a helper method to define mock.On call

  • tx *gorm.DB
  • translation *models.MovieTranslation

type MockMovieTranslationRepositoryInterface_FindAllByMovie_Call

type MockMovieTranslationRepositoryInterface_FindAllByMovie_Call struct {
	*mock.Call
}

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

func (*MockMovieTranslationRepositoryInterface_FindAllByMovie_Call) Return

func (*MockMovieTranslationRepositoryInterface_FindAllByMovie_Call) Run

func (*MockMovieTranslationRepositoryInterface_FindAllByMovie_Call) RunAndReturn

type MockMovieTranslationRepositoryInterface_FindByMovieAndLanguage_Call

type MockMovieTranslationRepositoryInterface_FindByMovieAndLanguage_Call struct {
	*mock.Call
}

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

func (*MockMovieTranslationRepositoryInterface_FindByMovieAndLanguage_Call) Return

func (*MockMovieTranslationRepositoryInterface_FindByMovieAndLanguage_Call) Run

func (*MockMovieTranslationRepositoryInterface_FindByMovieAndLanguage_Call) RunAndReturn

type MockMovieTranslationRepositoryInterface_UpsertTx_Call

type MockMovieTranslationRepositoryInterface_UpsertTx_Call struct {
	*mock.Call
}

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

func (*MockMovieTranslationRepositoryInterface_UpsertTx_Call) Return

func (*MockMovieTranslationRepositoryInterface_UpsertTx_Call) Run

func (*MockMovieTranslationRepositoryInterface_UpsertTx_Call) RunAndReturn

type MockMovieTranslationRepositoryInterface_Upsert_Call

type MockMovieTranslationRepositoryInterface_Upsert_Call struct {
	*mock.Call
}

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

func (*MockMovieTranslationRepositoryInterface_Upsert_Call) Return

func (*MockMovieTranslationRepositoryInterface_Upsert_Call) Run

func (*MockMovieTranslationRepositoryInterface_Upsert_Call) RunAndReturn

type MockScraper

type MockScraper struct {
	mock.Mock
}

MockScraper is an autogenerated mock type for the Scraper type

func NewMockScraper

func NewMockScraper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockScraper

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

func (_m *MockScraper) EXPECT() *MockScraper_Expecter

func (*MockScraper) GetURL

func (_mock *MockScraper) GetURL(id string) (string, error)

GetURL provides a mock function for the type MockScraper

func (*MockScraper) IsEnabled

func (_mock *MockScraper) IsEnabled() bool

IsEnabled provides a mock function for the type MockScraper

func (*MockScraper) Name

func (_mock *MockScraper) Name() string

Name provides a mock function for the type MockScraper

func (*MockScraper) Search

func (_mock *MockScraper) Search(id string) (*models.ScraperResult, error)

Search provides a mock function for the type MockScraper

type MockScraper_Expecter

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

func (*MockScraper_Expecter) GetURL

func (_e *MockScraper_Expecter) GetURL(id interface{}) *MockScraper_GetURL_Call

GetURL is a helper method to define mock.On call

  • id string

func (*MockScraper_Expecter) IsEnabled

IsEnabled is a helper method to define mock.On call

func (*MockScraper_Expecter) Name

Name is a helper method to define mock.On call

func (*MockScraper_Expecter) Search

func (_e *MockScraper_Expecter) Search(id interface{}) *MockScraper_Search_Call

Search is a helper method to define mock.On call

  • id string

type MockScraper_GetURL_Call

type MockScraper_GetURL_Call struct {
	*mock.Call
}

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

func (*MockScraper_GetURL_Call) Return

func (*MockScraper_GetURL_Call) Run

func (*MockScraper_GetURL_Call) RunAndReturn

func (_c *MockScraper_GetURL_Call) RunAndReturn(run func(id string) (string, error)) *MockScraper_GetURL_Call

type MockScraper_IsEnabled_Call

type MockScraper_IsEnabled_Call struct {
	*mock.Call
}

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

func (*MockScraper_IsEnabled_Call) Return

func (*MockScraper_IsEnabled_Call) Run

func (*MockScraper_IsEnabled_Call) RunAndReturn

func (_c *MockScraper_IsEnabled_Call) RunAndReturn(run func() bool) *MockScraper_IsEnabled_Call

type MockScraper_Name_Call

type MockScraper_Name_Call struct {
	*mock.Call
}

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

func (*MockScraper_Name_Call) Return

func (*MockScraper_Name_Call) Run

func (_c *MockScraper_Name_Call) Run(run func()) *MockScraper_Name_Call

func (*MockScraper_Name_Call) RunAndReturn

func (_c *MockScraper_Name_Call) RunAndReturn(run func() string) *MockScraper_Name_Call

type MockScraper_Search_Call

type MockScraper_Search_Call struct {
	*mock.Call
}

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

func (*MockScraper_Search_Call) Return

func (*MockScraper_Search_Call) Run

func (*MockScraper_Search_Call) RunAndReturn

Jump to

Keyboard shortcuts

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