forked from NethermindEth/juno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock_gateway_handler.go
56 lines (47 loc) · 1.63 KB
/
mock_gateway_handler.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/NethermindEth/juno/rpc (interfaces: Gateway)
//
// Generated by this command:
//
// mockgen -destination=../mocks/mock_gateway_handler.go -package=mocks github.com/NethermindEth/juno/rpc Gateway
//
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
json "encoding/json"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockGateway is a mock of Gateway interface.
type MockGateway struct {
ctrl *gomock.Controller
recorder *MockGatewayMockRecorder
}
// MockGatewayMockRecorder is the mock recorder for MockGateway.
type MockGatewayMockRecorder struct {
mock *MockGateway
}
// NewMockGateway creates a new mock instance.
func NewMockGateway(ctrl *gomock.Controller) *MockGateway {
mock := &MockGateway{ctrl: ctrl}
mock.recorder = &MockGatewayMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockGateway) EXPECT() *MockGatewayMockRecorder {
return m.recorder
}
// AddTransaction mocks base method.
func (m *MockGateway) AddTransaction(arg0 context.Context, arg1 json.RawMessage) (json.RawMessage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddTransaction", arg0, arg1)
ret0, _ := ret[0].(json.RawMessage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AddTransaction indicates an expected call of AddTransaction.
func (mr *MockGatewayMockRecorder) AddTransaction(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTransaction", reflect.TypeOf((*MockGateway)(nil).AddTransaction), arg0, arg1)
}