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"
transport "code.fbi.h-da.de/danet/gosdn/controller/interfaces/transport"
ytypes "github.com/openconfig/ygot/ytypes"
)
// Transport is an autogenerated mock type for the Transport type
type Transport struct {
mock.Mock
}
// ControlPlaneSubscribe provides a mock function with given fields: ctx, subscribeCallbackFunc, subscriptionInfo
func (_m *Transport) ControlPlaneSubscribe(ctx context.Context, subscribeCallbackFunc transport.HandleSubscribeResponse, subscriptionInfo *transport.SubscriptionInformation) error {
ret := _m.Called(ctx, subscribeCallbackFunc, subscriptionInfo)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, transport.HandleSubscribeResponse, *transport.SubscriptionInformation) error); ok {
r0 = rf(ctx, subscribeCallbackFunc, subscriptionInfo)
} else {
r0 = ret.Error(0)
}
return r0
}
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
// 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, path, schema
func (_m *Transport) Set(ctx context.Context, payload change.Payload, path string, schema *ytypes.Schema) error {
ret := _m.Called(ctx, payload, path, schema)
if rf, ok := ret.Get(0).(func(context.Context, change.Payload, string, *ytypes.Schema) error); ok {
r0 = rf(ctx, payload, path, schema)
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
}
// 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
}