mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-15 17:50:49 +00:00
9cf732b64e
Utilize go generate
61 lines
1.1 KiB
Go
61 lines
1.1 KiB
Go
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
|
|
|
package source
|
|
|
|
import mock "github.com/stretchr/testify/mock"
|
|
|
|
// MockLabelSource is an autogenerated mock type for the LabelSource type
|
|
type MockLabelSource struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// GetLabels provides a mock function with given fields:
|
|
func (_m *MockLabelSource) GetLabels() (FeatureLabels, error) {
|
|
ret := _m.Called()
|
|
|
|
var r0 FeatureLabels
|
|
if rf, ok := ret.Get(0).(func() FeatureLabels); ok {
|
|
r0 = rf()
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(FeatureLabels)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func() error); ok {
|
|
r1 = rf()
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Name provides a mock function with given fields:
|
|
func (_m *MockLabelSource) 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
|
|
}
|
|
|
|
// Priority provides a mock function with given fields:
|
|
func (_m *MockLabelSource) Priority() int {
|
|
ret := _m.Called()
|
|
|
|
var r0 int
|
|
if rf, ok := ret.Get(0).(func() int); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Get(0).(int)
|
|
}
|
|
|
|
return r0
|
|
}
|