mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 21:38:23 +00:00
50 lines
936 B
Go
50 lines
936 B
Go
|
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
||
|
|
||
|
// Re-generate by running 'make mock'
|
||
|
|
||
|
package source
|
||
|
|
||
|
import mock "github.com/stretchr/testify/mock"
|
||
|
|
||
|
// MockFeatureSource is an autogenerated mock type for the FeatureSource type
|
||
|
type MockFeatureSource struct {
|
||
|
mock.Mock
|
||
|
}
|
||
|
|
||
|
// Discover provides a mock function with given fields:
|
||
|
func (_m *MockFeatureSource) Discover() (Features, error) {
|
||
|
ret := _m.Called()
|
||
|
|
||
|
var r0 Features
|
||
|
if rf, ok := ret.Get(0).(func() Features); ok {
|
||
|
r0 = rf()
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).(Features)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
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 *MockFeatureSource) 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
|
||
|
}
|