-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
offchain_transmitter.go
59 lines (46 loc) · 1.56 KB
/
offchain_transmitter.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
// Code generated by mockery v2.35.4. DO NOT EDIT.
package mocks
import (
context "context"
functions "github.com/smartcontractkit/chainlink/v2/core/services/functions"
mock "github.com/stretchr/testify/mock"
)
// OffchainTransmitter is an autogenerated mock type for the OffchainTransmitter type
type OffchainTransmitter struct {
mock.Mock
}
// ReportChannel provides a mock function with given fields:
func (_m *OffchainTransmitter) ReportChannel() chan *functions.OffchainResponse {
ret := _m.Called()
var r0 chan *functions.OffchainResponse
if rf, ok := ret.Get(0).(func() chan *functions.OffchainResponse); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(chan *functions.OffchainResponse)
}
}
return r0
}
// TransmitReport provides a mock function with given fields: ctx, report
func (_m *OffchainTransmitter) TransmitReport(ctx context.Context, report *functions.OffchainResponse) error {
ret := _m.Called(ctx, report)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *functions.OffchainResponse) error); ok {
r0 = rf(ctx, report)
} else {
r0 = ret.Error(0)
}
return r0
}
// NewOffchainTransmitter creates a new instance of OffchainTransmitter. 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 NewOffchainTransmitter(t interface {
mock.TestingT
Cleanup(func())
}) *OffchainTransmitter {
mock := &OffchainTransmitter{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}