/
mock_client.go
106 lines (89 loc) · 3.61 KB
/
mock_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
// Code generated by MockGen. DO NOT EDIT.
// Source: blep.ai/data/connectors/source/bitcoin (interfaces: BTCClient)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
btcjson "github.com/btcsuite/btcd/btcjson"
chainhash "github.com/btcsuite/btcd/chaincfg/chainhash"
wire "github.com/btcsuite/btcd/wire"
gomock "github.com/golang/mock/gomock"
)
// MockBTCClient is a mock of BTCClient interface.
type MockBTCClient struct {
ctrl *gomock.Controller
recorder *MockBTCClientMockRecorder
}
// MockBTCClientMockRecorder is the mock recorder for MockBTCClient.
type MockBTCClientMockRecorder struct {
mock *MockBTCClient
}
// NewMockBTCClient creates a new mock instance.
func NewMockBTCClient(ctrl *gomock.Controller) *MockBTCClient {
mock := &MockBTCClient{ctrl: ctrl}
mock.recorder = &MockBTCClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBTCClient) EXPECT() *MockBTCClientMockRecorder {
return m.recorder
}
// GetBlock mocks base method.
func (m *MockBTCClient) GetBlock(arg0 *chainhash.Hash) (*wire.MsgBlock, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlock", arg0)
ret0, _ := ret[0].(*wire.MsgBlock)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlock indicates an expected call of GetBlock.
func (mr *MockBTCClientMockRecorder) GetBlock(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*MockBTCClient)(nil).GetBlock), arg0)
}
// GetBlockVerbose mocks base method.
func (m *MockBTCClient) GetBlockVerbose(arg0 *chainhash.Hash) (*btcjson.GetBlockVerboseResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlockVerbose", arg0)
ret0, _ := ret[0].(*btcjson.GetBlockVerboseResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlockVerbose indicates an expected call of GetBlockVerbose.
func (mr *MockBTCClientMockRecorder) GetBlockVerbose(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockVerbose", reflect.TypeOf((*MockBTCClient)(nil).GetBlockVerbose), arg0)
}
// GetRawTransactionVerbose mocks base method.
func (m *MockBTCClient) GetRawTransactionVerbose(arg0 *chainhash.Hash) (*btcjson.TxRawResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRawTransactionVerbose", arg0)
ret0, _ := ret[0].(*btcjson.TxRawResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRawTransactionVerbose indicates an expected call of GetRawTransactionVerbose.
func (mr *MockBTCClientMockRecorder) GetRawTransactionVerbose(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRawTransactionVerbose", reflect.TypeOf((*MockBTCClient)(nil).GetRawTransactionVerbose), arg0)
}
// Shutdown mocks base method.
func (m *MockBTCClient) Shutdown() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Shutdown")
}
// Shutdown indicates an expected call of Shutdown.
func (mr *MockBTCClientMockRecorder) Shutdown() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockBTCClient)(nil).Shutdown))
}
// WaitForShutdown mocks base method.
func (m *MockBTCClient) WaitForShutdown() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "WaitForShutdown")
}
// WaitForShutdown indicates an expected call of WaitForShutdown.
func (mr *MockBTCClientMockRecorder) WaitForShutdown() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForShutdown", reflect.TypeOf((*MockBTCClient)(nil).WaitForShutdown))
}