Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Index ¶
- type MockMoviesRepository
- func (m *MockMoviesRepository) EXPECT() *MockMoviesRepositoryMockRecorder
- func (m *MockMoviesRepository) GetAgeRatings(ctx context.Context) ([]string, error)
- func (m *MockMoviesRepository) GetAllCountries(ctx context.Context) ([]models.Country, error)
- func (m *MockMoviesRepository) GetAllGenres(ctx context.Context) ([]models.Genre, error)
- func (m *MockMoviesRepository) GetCountries(ctx context.Context, movieId int32) ([]string, error)
- func (m *MockMoviesRepository) GetGenres(ctx context.Context, movieId int32) ([]string, error)
- func (m *MockMoviesRepository) GetMovie(ctx context.Context, movieId int32) (models.RepositoryMovie, error)
- func (m *MockMoviesRepository) GetMoviePreview(ctx context.Context, movieId int32) (models.RepositoryMoviePreview, error)
- func (m *MockMoviesRepository) GetMoviesPreview(ctx context.Context, Filter models.MoviesFilter, limit, offset uint32) ([]models.RepositoryMoviePreview, error)
- func (m *MockMoviesRepository) GetMoviesPreviewByIDs(ctx context.Context, ids []string) ([]models.RepositoryMoviePreview, error)
- type MockMoviesRepositoryMockRecorder
- func (mr *MockMoviesRepositoryMockRecorder) GetAgeRatings(ctx interface{}) *gomock.Call
- func (mr *MockMoviesRepositoryMockRecorder) GetAllCountries(ctx interface{}) *gomock.Call
- func (mr *MockMoviesRepositoryMockRecorder) GetAllGenres(ctx interface{}) *gomock.Call
- func (mr *MockMoviesRepositoryMockRecorder) GetCountries(ctx, movieId interface{}) *gomock.Call
- func (mr *MockMoviesRepositoryMockRecorder) GetGenres(ctx, movieId interface{}) *gomock.Call
- func (mr *MockMoviesRepositoryMockRecorder) GetMovie(ctx, movieId interface{}) *gomock.Call
- func (mr *MockMoviesRepositoryMockRecorder) GetMoviePreview(ctx, movieId interface{}) *gomock.Call
- func (mr *MockMoviesRepositoryMockRecorder) GetMoviesPreview(ctx, Filter, limit, offset interface{}) *gomock.Call
- func (mr *MockMoviesRepositoryMockRecorder) GetMoviesPreviewByIDs(ctx, ids interface{}) *gomock.Call
- type MockMoviesService
- func (m *MockMoviesService) EXPECT() *MockMoviesServiceMockRecorder
- func (m *MockMoviesService) GetAgeRatings(ctx context.Context) ([]string, error)
- func (m *MockMoviesService) GetCountries(ctx context.Context) ([]models.Country, error)
- func (m *MockMoviesService) GetGenres(ctx context.Context) ([]models.Genre, error)
- func (m *MockMoviesService) GetMovie(ctx context.Context, id int32) (models.Movie, error)
- func (m *MockMoviesService) GetMoviesPreview(ctx context.Context, filter models.MoviesFilter, limit, offset uint32) ([]models.MoviePreview, error)
- func (m *MockMoviesService) GetMoviesPreviewByIDs(ctx context.Context, ids []string) ([]models.MoviePreview, error)
- type MockMoviesServiceMockRecorder
- func (mr *MockMoviesServiceMockRecorder) GetAgeRatings(ctx interface{}) *gomock.Call
- func (mr *MockMoviesServiceMockRecorder) GetCountries(ctx interface{}) *gomock.Call
- func (mr *MockMoviesServiceMockRecorder) GetGenres(ctx interface{}) *gomock.Call
- func (mr *MockMoviesServiceMockRecorder) GetMovie(ctx, id interface{}) *gomock.Call
- func (mr *MockMoviesServiceMockRecorder) GetMoviesPreview(ctx, filter, limit, offset interface{}) *gomock.Call
- func (mr *MockMoviesServiceMockRecorder) GetMoviesPreviewByIDs(ctx, ids interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMoviesRepository ¶
type MockMoviesRepository struct {
// contains filtered or unexported fields
}
MockMoviesRepository is a mock of MoviesRepository interface.
func NewMockMoviesRepository ¶
func NewMockMoviesRepository(ctrl *gomock.Controller) *MockMoviesRepository
NewMockMoviesRepository creates a new mock instance.
func (*MockMoviesRepository) EXPECT ¶
func (m *MockMoviesRepository) EXPECT() *MockMoviesRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMoviesRepository) GetAgeRatings ¶
func (m *MockMoviesRepository) GetAgeRatings(ctx context.Context) ([]string, error)
GetAgeRatings mocks base method.
func (*MockMoviesRepository) GetAllCountries ¶
GetAllCountries mocks base method.
func (*MockMoviesRepository) GetAllGenres ¶
GetAllGenres mocks base method.
func (*MockMoviesRepository) GetCountries ¶
GetCountries mocks base method.
func (*MockMoviesRepository) GetMovie ¶
func (m *MockMoviesRepository) GetMovie(ctx context.Context, movieId int32) (models.RepositoryMovie, error)
GetMovie mocks base method.
func (*MockMoviesRepository) GetMoviePreview ¶
func (m *MockMoviesRepository) GetMoviePreview(ctx context.Context, movieId int32) (models.RepositoryMoviePreview, error)
GetMoviePreview mocks base method.
func (*MockMoviesRepository) GetMoviesPreview ¶
func (m *MockMoviesRepository) GetMoviesPreview(ctx context.Context, Filter models.MoviesFilter, limit, offset uint32) ([]models.RepositoryMoviePreview, error)
GetMoviesPreview mocks base method.
func (*MockMoviesRepository) GetMoviesPreviewByIDs ¶
func (m *MockMoviesRepository) GetMoviesPreviewByIDs(ctx context.Context, ids []string) ([]models.RepositoryMoviePreview, error)
GetMoviesPreviewByIDs mocks base method.
type MockMoviesRepositoryMockRecorder ¶
type MockMoviesRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockMoviesRepositoryMockRecorder is the mock recorder for MockMoviesRepository.
func (*MockMoviesRepositoryMockRecorder) GetAgeRatings ¶
func (mr *MockMoviesRepositoryMockRecorder) GetAgeRatings(ctx interface{}) *gomock.Call
GetAgeRatings indicates an expected call of GetAgeRatings.
func (*MockMoviesRepositoryMockRecorder) GetAllCountries ¶
func (mr *MockMoviesRepositoryMockRecorder) GetAllCountries(ctx interface{}) *gomock.Call
GetAllCountries indicates an expected call of GetAllCountries.
func (*MockMoviesRepositoryMockRecorder) GetAllGenres ¶
func (mr *MockMoviesRepositoryMockRecorder) GetAllGenres(ctx interface{}) *gomock.Call
GetAllGenres indicates an expected call of GetAllGenres.
func (*MockMoviesRepositoryMockRecorder) GetCountries ¶
func (mr *MockMoviesRepositoryMockRecorder) GetCountries(ctx, movieId interface{}) *gomock.Call
GetCountries indicates an expected call of GetCountries.
func (*MockMoviesRepositoryMockRecorder) GetGenres ¶
func (mr *MockMoviesRepositoryMockRecorder) GetGenres(ctx, movieId interface{}) *gomock.Call
GetGenres indicates an expected call of GetGenres.
func (*MockMoviesRepositoryMockRecorder) GetMovie ¶
func (mr *MockMoviesRepositoryMockRecorder) GetMovie(ctx, movieId interface{}) *gomock.Call
GetMovie indicates an expected call of GetMovie.
func (*MockMoviesRepositoryMockRecorder) GetMoviePreview ¶
func (mr *MockMoviesRepositoryMockRecorder) GetMoviePreview(ctx, movieId interface{}) *gomock.Call
GetMoviePreview indicates an expected call of GetMoviePreview.
func (*MockMoviesRepositoryMockRecorder) GetMoviesPreview ¶
func (mr *MockMoviesRepositoryMockRecorder) GetMoviesPreview(ctx, Filter, limit, offset interface{}) *gomock.Call
GetMoviesPreview indicates an expected call of GetMoviesPreview.
func (*MockMoviesRepositoryMockRecorder) GetMoviesPreviewByIDs ¶
func (mr *MockMoviesRepositoryMockRecorder) GetMoviesPreviewByIDs(ctx, ids interface{}) *gomock.Call
GetMoviesPreviewByIDs indicates an expected call of GetMoviesPreviewByIDs.
type MockMoviesService ¶
type MockMoviesService struct {
// contains filtered or unexported fields
}
MockMoviesService is a mock of MoviesService interface.
func NewMockMoviesService ¶
func NewMockMoviesService(ctrl *gomock.Controller) *MockMoviesService
NewMockMoviesService creates a new mock instance.
func (*MockMoviesService) EXPECT ¶
func (m *MockMoviesService) EXPECT() *MockMoviesServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMoviesService) GetAgeRatings ¶
func (m *MockMoviesService) GetAgeRatings(ctx context.Context) ([]string, error)
GetAgeRatings mocks base method.
func (*MockMoviesService) GetCountries ¶
GetCountries mocks base method.
func (*MockMoviesService) GetMoviesPreview ¶
func (m *MockMoviesService) GetMoviesPreview(ctx context.Context, filter models.MoviesFilter, limit, offset uint32) ([]models.MoviePreview, error)
GetMoviesPreview mocks base method.
func (*MockMoviesService) GetMoviesPreviewByIDs ¶
func (m *MockMoviesService) GetMoviesPreviewByIDs(ctx context.Context, ids []string) ([]models.MoviePreview, error)
GetMoviesPreviewByIDs mocks base method.
type MockMoviesServiceMockRecorder ¶
type MockMoviesServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockMoviesServiceMockRecorder is the mock recorder for MockMoviesService.
func (*MockMoviesServiceMockRecorder) GetAgeRatings ¶
func (mr *MockMoviesServiceMockRecorder) GetAgeRatings(ctx interface{}) *gomock.Call
GetAgeRatings indicates an expected call of GetAgeRatings.
func (*MockMoviesServiceMockRecorder) GetCountries ¶
func (mr *MockMoviesServiceMockRecorder) GetCountries(ctx interface{}) *gomock.Call
GetCountries indicates an expected call of GetCountries.
func (*MockMoviesServiceMockRecorder) GetGenres ¶
func (mr *MockMoviesServiceMockRecorder) GetGenres(ctx interface{}) *gomock.Call
GetGenres indicates an expected call of GetGenres.
func (*MockMoviesServiceMockRecorder) GetMovie ¶
func (mr *MockMoviesServiceMockRecorder) GetMovie(ctx, id interface{}) *gomock.Call
GetMovie indicates an expected call of GetMovie.
func (*MockMoviesServiceMockRecorder) GetMoviesPreview ¶
func (mr *MockMoviesServiceMockRecorder) GetMoviesPreview(ctx, filter, limit, offset interface{}) *gomock.Call
GetMoviesPreview indicates an expected call of GetMoviesPreview.
func (*MockMoviesServiceMockRecorder) GetMoviesPreviewByIDs ¶
func (mr *MockMoviesServiceMockRecorder) GetMoviesPreviewByIDs(ctx, ids interface{}) *gomock.Call
GetMoviesPreviewByIDs indicates an expected call of GetMoviesPreviewByIDs.