This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
/
post_category_service.go
79 lines (67 loc) · 3.13 KB
/
post_category_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Code generated by MockGen. DO NOT EDIT.
// Source: contracts/post_category_service.go
// Package mocks is a generated GoMock package.
package mocks
import (
entities "github.com/emelnychenko/go-press/entities"
errors "github.com/emelnychenko/go-press/errors"
models "github.com/emelnychenko/go-press/models"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockPostCategoryService is a mock of PostCategoryService interface
type MockPostCategoryService struct {
ctrl *gomock.Controller
recorder *MockPostCategoryServiceMockRecorder
}
// MockPostCategoryServiceMockRecorder is the mock recorder for MockPostCategoryService
type MockPostCategoryServiceMockRecorder struct {
mock *MockPostCategoryService
}
// NewMockPostCategoryService creates a new mock instance
func NewMockPostCategoryService(ctrl *gomock.Controller) *MockPostCategoryService {
mock := &MockPostCategoryService{ctrl: ctrl}
mock.recorder = &MockPostCategoryServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPostCategoryService) EXPECT() *MockPostCategoryServiceMockRecorder {
return m.recorder
}
// ListPostCategories mocks base method
func (m *MockPostCategoryService) ListPostCategories(arg0 *entities.PostEntity, arg1 *models.CategoryPaginationQuery) (*models.PaginationResult, errors.Error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListPostCategories", arg0, arg1)
ret0, _ := ret[0].(*models.PaginationResult)
ret1, _ := ret[1].(errors.Error)
return ret0, ret1
}
// ListPostCategories indicates an expected call of ListPostCategories
func (mr *MockPostCategoryServiceMockRecorder) ListPostCategories(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPostCategories", reflect.TypeOf((*MockPostCategoryService)(nil).ListPostCategories), arg0, arg1)
}
// AddPostCategory mocks base method
func (m *MockPostCategoryService) AddPostCategory(arg0 *entities.PostEntity, arg1 *entities.CategoryEntity) errors.Error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddPostCategory", arg0, arg1)
ret0, _ := ret[0].(errors.Error)
return ret0
}
// AddPostCategory indicates an expected call of AddPostCategory
func (mr *MockPostCategoryServiceMockRecorder) AddPostCategory(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPostCategory", reflect.TypeOf((*MockPostCategoryService)(nil).AddPostCategory), arg0, arg1)
}
// RemovePostCategory mocks base method
func (m *MockPostCategoryService) RemovePostCategory(arg0 *entities.PostEntity, arg1 *entities.CategoryEntity) errors.Error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemovePostCategory", arg0, arg1)
ret0, _ := ret[0].(errors.Error)
return ret0
}
// RemovePostCategory indicates an expected call of RemovePostCategory
func (mr *MockPostCategoryServiceMockRecorder) RemovePostCategory(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePostCategory", reflect.TypeOf((*MockPostCategoryService)(nil).RemovePostCategory), arg0, arg1)
}