forked from content-services/content-sources-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
task_info_mock.go
84 lines (67 loc) · 2.4 KB
/
task_info_mock.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
80
81
82
83
84
// Code generated by mockery v2.20.0. DO NOT EDIT.
package dao
import (
api "github.com/content-services/content-sources-backend/pkg/api"
mock "github.com/stretchr/testify/mock"
)
// MockTaskInfoDao is an autogenerated mock type for the MockTaskInfoDao type
type MockTaskInfoDao struct {
mock.Mock
}
// Fetch provides a mock function with given fields: OrgID, id
func (_m *MockTaskInfoDao) Fetch(OrgID string, id string) (api.TaskInfoResponse, error) {
ret := _m.Called(OrgID, id)
var r0 api.TaskInfoResponse
var r1 error
if rf, ok := ret.Get(0).(func(string, string) (api.TaskInfoResponse, error)); ok {
return rf(OrgID, id)
}
if rf, ok := ret.Get(0).(func(string, string) api.TaskInfoResponse); ok {
r0 = rf(OrgID, id)
} else {
r0 = ret.Get(0).(api.TaskInfoResponse)
}
if rf, ok := ret.Get(1).(func(string, string) error); ok {
r1 = rf(OrgID, id)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// List provides a mock function with given fields: OrgID, pageData, statusFilter
func (_m *MockTaskInfoDao) List(OrgID string, pageData api.PaginationData, statusFilter string) (api.TaskInfoCollectionResponse, int64, error) {
ret := _m.Called(OrgID, pageData, statusFilter)
var r0 api.TaskInfoCollectionResponse
var r1 int64
var r2 error
if rf, ok := ret.Get(0).(func(string, api.PaginationData, string) (api.TaskInfoCollectionResponse, int64, error)); ok {
return rf(OrgID, pageData, statusFilter)
}
if rf, ok := ret.Get(0).(func(string, api.PaginationData, string) api.TaskInfoCollectionResponse); ok {
r0 = rf(OrgID, pageData, statusFilter)
} else {
r0 = ret.Get(0).(api.TaskInfoCollectionResponse)
}
if rf, ok := ret.Get(1).(func(string, api.PaginationData, string) int64); ok {
r1 = rf(OrgID, pageData, statusFilter)
} else {
r1 = ret.Get(1).(int64)
}
if rf, ok := ret.Get(2).(func(string, api.PaginationData, string) error); ok {
r2 = rf(OrgID, pageData, statusFilter)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
type mockConstructorTestingTNewMockTaskInfoDao interface {
mock.TestingT
Cleanup(func())
}
// NewMockTaskInfoDao creates a new instance of MockTaskInfoDao. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockTaskInfoDao(t mockConstructorTestingTNewMockTaskInfoDao) *MockTaskInfoDao {
mock := &MockTaskInfoDao{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}