mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
ac3030ce48
Refresh auto-generated files using the new conainerized approach.
76 lines
1.5 KiB
Go
76 lines
1.5 KiB
Go
// Code generated by mockery v2.13.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
|
|
}
|
|
|
|
type NewMockLabelSourceT interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}
|
|
|
|
// NewMockLabelSource creates a new instance of MockLabelSource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func NewMockLabelSource(t NewMockLabelSourceT) *MockLabelSource {
|
|
mock := &MockLabelSource{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|