/
jsonrpc.go
52 lines (40 loc) · 1.21 KB
/
jsonrpc.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
// Code generated by mockery v2.10.0. DO NOT EDIT.
package klaytn
import (
context "context"
mock "github.com/stretchr/testify/mock"
rpc "github.com/klaytn/klaytn/networks/rpc"
)
// JSONRPC is an autogenerated mock type for the JSONRPC type
type JSONRPC struct {
mock.Mock
}
// BatchCallContext provides a mock function with given fields: ctx, b
func (_m *JSONRPC) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error {
ret := _m.Called(ctx, b)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, []rpc.BatchElem) error); ok {
r0 = rf(ctx, b)
} else {
r0 = ret.Error(0)
}
return r0
}
// CallContext provides a mock function with given fields: ctx, result, method, args
func (_m *JSONRPC) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error {
var _ca []interface{}
_ca = append(_ca, ctx, result, method)
_ca = append(_ca, args...)
ret := _m.Called(_ca...)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, interface{}, string, ...interface{}) error); ok {
r0 = rf(ctx, result, method, args...)
} else {
r0 = ret.Error(0)
}
return r0
}
// Close provides a mock function with given fields:
func (_m *JSONRPC) Close() {
_m.Called()
}