-
Notifications
You must be signed in to change notification settings - Fork 0
/
IListNodeService.go
85 lines (69 loc) · 2.1 KB
/
IListNodeService.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
85
// Code generated by mockery v2.39.1. DO NOT EDIT.
package mocks
import (
models "github.com/joaofilippe/americanas-desafio/internal/models"
mock "github.com/stretchr/testify/mock"
)
// IListNodeService is an autogenerated mock type for the IListNodeService type
type IListNodeService struct {
mock.Mock
}
// GetMergedListNode provides a mock function with given fields: id
func (_m *IListNodeService) GetMergedListNode(id int64) (*models.ListNode, error) {
ret := _m.Called(id)
if len(ret) == 0 {
panic("no return value specified for GetMergedListNode")
}
var r0 *models.ListNode
var r1 error
if rf, ok := ret.Get(0).(func(int64) (*models.ListNode, error)); ok {
return rf(id)
}
if rf, ok := ret.Get(0).(func(int64) *models.ListNode); ok {
r0 = rf(id)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*models.ListNode)
}
}
if rf, ok := ret.Get(1).(func(int64) error); ok {
r1 = rf(id)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// SaveListsNode provides a mock function with given fields: list1, list2
func (_m *IListNodeService) SaveListsNode(list1 *models.ListNode, list2 *models.ListNode) (int64, error) {
ret := _m.Called(list1, list2)
if len(ret) == 0 {
panic("no return value specified for SaveListsNode")
}
var r0 int64
var r1 error
if rf, ok := ret.Get(0).(func(*models.ListNode, *models.ListNode) (int64, error)); ok {
return rf(list1, list2)
}
if rf, ok := ret.Get(0).(func(*models.ListNode, *models.ListNode) int64); ok {
r0 = rf(list1, list2)
} else {
r0 = ret.Get(0).(int64)
}
if rf, ok := ret.Get(1).(func(*models.ListNode, *models.ListNode) error); ok {
r1 = rf(list1, list2)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// NewIListNodeService creates a new instance of IListNodeService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewIListNodeService(t interface {
mock.TestingT
Cleanup(func())
}) *IListNodeService {
mock := &IListNodeService{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}