Newer
Older
// Code generated by mockery v2.14.0. DO NOT EDIT.
southbound "code.fbi.h-da.de/danet/gosdn/controller/interfaces/southbound"
mock "github.com/stretchr/testify/mock"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
transport "code.fbi.h-da.de/danet/gosdn/controller/interfaces/transport"
uuid "github.com/google/uuid"
ygot "github.com/openconfig/ygot/ygot"
)
// Device is an autogenerated mock type for the Device type
type Device struct {
mock.Mock
}
Malte Bauch
committed
// CreateModelCopy provides a mock function with given fields:
func (_m *Device) CreateModelCopy() (ygot.ValidatedGoStruct, error) {
var r0 ygot.ValidatedGoStruct
if rf, ok := ret.Get(0).(func() ygot.ValidatedGoStruct); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ygot.ValidatedGoStruct)
Malte Bauch
committed
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetModel provides a mock function with given fields:
func (_m *Device) GetModel() ygot.GoStruct {
ret := _m.Called()
var r0 ygot.GoStruct
if rf, ok := ret.Get(0).(func() ygot.GoStruct); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ygot.GoStruct)
}
}
// GetModelAsString provides a mock function with given fields:
func (_m *Device) GetModelAsString() (string, error) {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// ID provides a mock function with given fields:
func (_m *Device) ID() uuid.UUID {
var r0 uuid.UUID
if rf, ok := ret.Get(0).(func() uuid.UUID); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(uuid.UUID)
Malte Bauch
committed
// IsTransportValid provides a mock function with given fields:
func (_m *Device) IsTransportValid() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
// Name provides a mock function with given fields:
func (_m *Device) Name() 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
}
// ProcessResponse provides a mock function with given fields: _a0
func (_m *Device) ProcessResponse(_a0 protoreflect.ProtoMessage) error {
ret := _m.Called(_a0)
var r0 error
if rf, ok := ret.Get(0).(func(protoreflect.ProtoMessage) error); ok {
r0 = rf(_a0)
} else {
r0 = ret.Error(0)
}
return r0
}
// SBI provides a mock function with given fields:
func (_m *Device) SBI() southbound.SouthboundInterface {
ret := _m.Called()
var r0 southbound.SouthboundInterface
if rf, ok := ret.Get(0).(func() southbound.SouthboundInterface); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(southbound.SouthboundInterface)
}
}
return r0
}
// Transport provides a mock function with given fields:
func (_m *Device) Transport() transport.Transport {
ret := _m.Called()
var r0 transport.Transport
if rf, ok := ret.Get(0).(func() transport.Transport); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(transport.Transport)
}
}
return r0
}
type mockConstructorTestingTNewDevice interface {
mock.TestingT
Cleanup(func())
}
// NewDevice creates a new instance of Device. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDevice(t mockConstructorTestingTNewDevice) *Device {
mock := &Device{}
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}