This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
/
MPCTransactionIterator.go
87 lines (70 loc) · 2.07 KB
/
MPCTransactionIterator.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
86
87
// Code generated by mockery. DO NOT EDIT.
package mocks
import (
mock "github.com/stretchr/testify/mock"
iterator "google.golang.org/api/iterator"
v1 "github.com/coinbase/waas-client-library-go/gen/go/coinbase/cloud/mpc_transactions/v1"
)
// MPCTransactionIterator is an autogenerated mock type for the MPCTransactionIterator type
type MPCTransactionIterator struct {
mock.Mock
}
// Next provides a mock function with given fields:
func (_m *MPCTransactionIterator) Next() (*v1.MPCTransaction, error) {
ret := _m.Called()
var r0 *v1.MPCTransaction
var r1 error
if rf, ok := ret.Get(0).(func() (*v1.MPCTransaction, error)); ok {
return rf()
}
if rf, ok := ret.Get(0).(func() *v1.MPCTransaction); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*v1.MPCTransaction)
}
}
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// PageInfo provides a mock function with given fields:
func (_m *MPCTransactionIterator) PageInfo() *iterator.PageInfo {
ret := _m.Called()
var r0 *iterator.PageInfo
if rf, ok := ret.Get(0).(func() *iterator.PageInfo); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*iterator.PageInfo)
}
}
return r0
}
// Response provides a mock function with given fields:
func (_m *MPCTransactionIterator) Response() *v1.ListMPCTransactionsResponse {
ret := _m.Called()
var r0 *v1.ListMPCTransactionsResponse
if rf, ok := ret.Get(0).(func() *v1.ListMPCTransactionsResponse); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*v1.ListMPCTransactionsResponse)
}
}
return r0
}
// NewMPCTransactionIterator creates a new instance of MPCTransactionIterator. 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 NewMPCTransactionIterator(t interface {
mock.TestingT
Cleanup(func())
}) *MPCTransactionIterator {
mock := &MPCTransactionIterator{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}