-
Notifications
You must be signed in to change notification settings - Fork 7
/
mock_ordinal_client.go
121 lines (95 loc) · 2.89 KB
/
mock_ordinal_client.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Code generated by mockery v2.42.1. DO NOT EDIT.
package mocks
import (
context "context"
http "net/http"
mock "github.com/stretchr/testify/mock"
ordinals "github.com/babylonlabs-io/staking-api-service/internal/shared/http/clients/ordinals"
types "github.com/babylonlabs-io/staking-api-service/internal/shared/types"
)
// OrdinalsClient is an autogenerated mock type for the OrdinalsClient type
type OrdinalsClient struct {
mock.Mock
}
// FetchUTXOInfos provides a mock function with given fields: ctx, utxos
func (_m *OrdinalsClient) FetchUTXOInfos(ctx context.Context, utxos []types.UTXOIdentifier) ([]ordinals.OrdinalsOutputResponse, *types.Error) {
ret := _m.Called(ctx, utxos)
if len(ret) == 0 {
panic("no return value specified for FetchUTXOInfos")
}
var r0 []ordinals.OrdinalsOutputResponse
var r1 *types.Error
if rf, ok := ret.Get(0).(func(context.Context, []types.UTXOIdentifier) ([]ordinals.OrdinalsOutputResponse, *types.Error)); ok {
return rf(ctx, utxos)
}
if rf, ok := ret.Get(0).(func(context.Context, []types.UTXOIdentifier) []ordinals.OrdinalsOutputResponse); ok {
r0 = rf(ctx, utxos)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]ordinals.OrdinalsOutputResponse)
}
}
if rf, ok := ret.Get(1).(func(context.Context, []types.UTXOIdentifier) *types.Error); ok {
r1 = rf(ctx, utxos)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*types.Error)
}
}
return r0, r1
}
// GetBaseURL provides a mock function with given fields:
func (_m *OrdinalsClient) GetBaseURL() string {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetBaseURL")
}
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetDefaultRequestTimeout provides a mock function with given fields:
func (_m *OrdinalsClient) GetDefaultRequestTimeout() int {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetDefaultRequestTimeout")
}
var r0 int
if rf, ok := ret.Get(0).(func() int); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(int)
}
return r0
}
// GetHttpClient provides a mock function with given fields:
func (_m *OrdinalsClient) GetHttpClient() *http.Client {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetHttpClient")
}
var r0 *http.Client
if rf, ok := ret.Get(0).(func() *http.Client); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*http.Client)
}
}
return r0
}
// NewOrdinalsClient creates a new instance of OrdinalsClient. 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 NewOrdinalsClient(t interface {
mock.TestingT
Cleanup(func())
}) *OrdinalsClient {
mock := &OrdinalsClient{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}