This repository has been archived by the owner on Jul 19, 2020. It is now read-only.
/
history_repo.go
50 lines (42 loc) · 1.57 KB
/
history_repo.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/hotstone-seo/hotstone-seo/server/repository (interfaces: HistoryRepo)
// Package mock_repository is a generated GoMock package.
package mock_repository
import (
context "context"
gomock "github.com/golang/mock/gomock"
repository "github.com/hotstone-seo/hotstone-seo/server/repository"
reflect "reflect"
)
// MockHistoryRepo is a mock of HistoryRepo interface
type MockHistoryRepo struct {
ctrl *gomock.Controller
recorder *MockHistoryRepoMockRecorder
}
// MockHistoryRepoMockRecorder is the mock recorder for MockHistoryRepo
type MockHistoryRepoMockRecorder struct {
mock *MockHistoryRepo
}
// NewMockHistoryRepo creates a new mock instance
func NewMockHistoryRepo(ctrl *gomock.Controller) *MockHistoryRepo {
mock := &MockHistoryRepo{ctrl: ctrl}
mock.recorder = &MockHistoryRepoMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHistoryRepo) EXPECT() *MockHistoryRepoMockRecorder {
return m.recorder
}
// Insert mocks base method
func (m *MockHistoryRepo) Insert(arg0 context.Context, arg1 repository.History) (int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Insert", arg0, arg1)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Insert indicates an expected call of Insert
func (mr *MockHistoryRepoMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockHistoryRepo)(nil).Insert), arg0, arg1)
}