This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
/
post_tag_service.go
79 lines (67 loc) · 2.87 KB
/
post_tag_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_tag_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"
)
// MockPostTagService is a mock of PostTagService interface
type MockPostTagService struct {
ctrl *gomock.Controller
recorder *MockPostTagServiceMockRecorder
}
// MockPostTagServiceMockRecorder is the mock recorder for MockPostTagService
type MockPostTagServiceMockRecorder struct {
mock *MockPostTagService
}
// NewMockPostTagService creates a new mock instance
func NewMockPostTagService(ctrl *gomock.Controller) *MockPostTagService {
mock := &MockPostTagService{ctrl: ctrl}
mock.recorder = &MockPostTagServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPostTagService) EXPECT() *MockPostTagServiceMockRecorder {
return m.recorder
}
// ListPostTags mocks base method
func (m *MockPostTagService) ListPostTags(arg0 *entities.PostEntity, arg1 *models.TagPaginationQuery) (*models.PaginationResult, errors.Error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListPostTags", arg0, arg1)
ret0, _ := ret[0].(*models.PaginationResult)
ret1, _ := ret[1].(errors.Error)
return ret0, ret1
}
// ListPostTags indicates an expected call of ListPostTags
func (mr *MockPostTagServiceMockRecorder) ListPostTags(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPostTags", reflect.TypeOf((*MockPostTagService)(nil).ListPostTags), arg0, arg1)
}
// AddPostTag mocks base method
func (m *MockPostTagService) AddPostTag(arg0 *entities.PostEntity, arg1 *entities.TagEntity) errors.Error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddPostTag", arg0, arg1)
ret0, _ := ret[0].(errors.Error)
return ret0
}
// AddPostTag indicates an expected call of AddPostTag
func (mr *MockPostTagServiceMockRecorder) AddPostTag(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPostTag", reflect.TypeOf((*MockPostTagService)(nil).AddPostTag), arg0, arg1)
}
// RemovePostTag mocks base method
func (m *MockPostTagService) RemovePostTag(arg0 *entities.PostEntity, arg1 *entities.TagEntity) errors.Error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemovePostTag", arg0, arg1)
ret0, _ := ret[0].(errors.Error)
return ret0
}
// RemovePostTag indicates an expected call of RemovePostTag
func (mr *MockPostTagServiceMockRecorder) RemovePostTag(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePostTag", reflect.TypeOf((*MockPostTagService)(nil).RemovePostTag), arg0, arg1)
}