1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/source/mock_FeatureSource.go
Markus Lehtonen 12d6c2410e Re-generate mock sources
Add a new Makefile target for regenerating these files.  Also, add a
note that the files are auto-generated, including instructions how to
re-generate them.

Renames the mock files, using the defaults provided by the mockery tool,
in order to make their generation easier.
2019-04-04 22:40:24 +03:00

49 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
}