Newer
Older
// Code generated by mockery v2.11.0. DO NOT EDIT.
package mocks
import (
context "context"
change "code.fbi.h-da.de/danet/gosdn/controller/interfaces/change"
testing "testing"
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
ytypes "github.com/openconfig/ygot/ytypes"
)
// Transport is an autogenerated mock type for the Transport type
type Transport struct {
mock.Mock
}
// Get provides a mock function with given fields: ctx, params
func (_m *Transport) Get(ctx context.Context, params ...string) (interface{}, error) {
_va := make([]interface{}, len(params))
for _i := range params {
_va[_i] = params[_i]
}
var _ca []interface{}
_ca = append(_ca, ctx)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
var r0 interface{}
if rf, ok := ret.Get(0).(func(context.Context, ...string) interface{}); ok {
r0 = rf(ctx, params...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(interface{})
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, ...string) error); ok {
r1 = rf(ctx, params...)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// ProcessResponse provides a mock function with given fields: resp, root, models
func (_m *Transport) ProcessResponse(resp interface{}, root interface{}, models *ytypes.Schema) error {
ret := _m.Called(resp, root, models)
var r0 error
if rf, ok := ret.Get(0).(func(interface{}, interface{}, *ytypes.Schema) error); ok {
r0 = rf(resp, root, models)
} else {
r0 = ret.Error(0)
}
return r0
}
// Set provides a mock function with given fields: ctx, payload
func (_m *Transport) Set(ctx context.Context, payload change.Payload) error {
ret := _m.Called(ctx, payload)
if rf, ok := ret.Get(0).(func(context.Context, change.Payload) error); ok {
r0 = rf(ctx, payload)
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
}
// Subscribe provides a mock function with given fields: ctx, params
func (_m *Transport) Subscribe(ctx context.Context, params ...string) error {
_va := make([]interface{}, len(params))
for _i := range params {
_va[_i] = params[_i]
}
var _ca []interface{}
_ca = append(_ca, ctx)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, ...string) error); ok {
r0 = rf(ctx, params...)
} else {
r0 = ret.Error(0)
}
return r0
}
// Type provides a mock function with given fields:
func (_m *Transport) Type() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// NewTransport creates a new instance of Transport. It also registers a cleanup function to assert the mocks expectations.
func NewTransport(t testing.TB) *Transport {
mock := &Transport{}
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}