This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
/
tag_aggregator.go
77 lines (65 loc) · 2.84 KB
/
tag_aggregator.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
// Code generated by MockGen. DO NOT EDIT.
// Source: contracts/tag_aggregator.go
// Package mocks is a generated GoMock package.
package mocks
import (
entities "github.com/emelnychenko/go-press/entities"
models "github.com/emelnychenko/go-press/models"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockTagAggregator is a mock of TagAggregator interface
type MockTagAggregator struct {
ctrl *gomock.Controller
recorder *MockTagAggregatorMockRecorder
}
// MockTagAggregatorMockRecorder is the mock recorder for MockTagAggregator
type MockTagAggregatorMockRecorder struct {
mock *MockTagAggregator
}
// NewMockTagAggregator creates a new mock instance
func NewMockTagAggregator(ctrl *gomock.Controller) *MockTagAggregator {
mock := &MockTagAggregator{ctrl: ctrl}
mock.recorder = &MockTagAggregatorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockTagAggregator) EXPECT() *MockTagAggregatorMockRecorder {
return m.recorder
}
// AggregateTag mocks base method
func (m *MockTagAggregator) AggregateTag(tagEntity *entities.TagEntity) *models.Tag {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AggregateTag", tagEntity)
ret0, _ := ret[0].(*models.Tag)
return ret0
}
// AggregateTag indicates an expected call of AggregateTag
func (mr *MockTagAggregatorMockRecorder) AggregateTag(tagEntity interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTag", reflect.TypeOf((*MockTagAggregator)(nil).AggregateTag), tagEntity)
}
// AggregateTags mocks base method
func (m *MockTagAggregator) AggregateTags(tagEntities []*entities.TagEntity) []*models.Tag {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AggregateTags", tagEntities)
ret0, _ := ret[0].([]*models.Tag)
return ret0
}
// AggregateTags indicates an expected call of AggregateTags
func (mr *MockTagAggregatorMockRecorder) AggregateTags(tagEntities interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTags", reflect.TypeOf((*MockTagAggregator)(nil).AggregateTags), tagEntities)
}
// AggregatePaginationResult mocks base method
func (m *MockTagAggregator) AggregatePaginationResult(entityPaginationResult *models.PaginationResult) *models.PaginationResult {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AggregatePaginationResult", entityPaginationResult)
ret0, _ := ret[0].(*models.PaginationResult)
return ret0
}
// AggregatePaginationResult indicates an expected call of AggregatePaginationResult
func (mr *MockTagAggregatorMockRecorder) AggregatePaginationResult(entityPaginationResult interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregatePaginationResult", reflect.TypeOf((*MockTagAggregator)(nil).AggregatePaginationResult), entityPaginationResult)
}