2023-07-27 09:05:23 +00:00
// Code generated by mockery v2.32.0. DO NOT EDIT.
2018-07-09 10:12:11 +00:00
package source
import mock "github.com/stretchr/testify/mock"
2021-03-01 05:45:32 +00:00
// MockLabelSource is an autogenerated mock type for the LabelSource type
type MockLabelSource struct {
2018-07-09 10:12:11 +00:00
mock . Mock
}
2021-03-01 16:39:49 +00:00
// GetLabels provides a mock function with given fields:
func ( _m * MockLabelSource ) GetLabels ( ) ( FeatureLabels , error ) {
2018-07-09 10:12:11 +00:00
ret := _m . Called ( )
2021-03-01 05:45:32 +00:00
var r0 FeatureLabels
2023-03-10 21:47:35 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( FeatureLabels , error ) ) ; ok {
return rf ( )
}
2021-03-01 05:45:32 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) FeatureLabels ) ; ok {
2018-07-09 10:12:11 +00:00
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
2021-03-01 05:45:32 +00:00
r0 = ret . Get ( 0 ) . ( FeatureLabels )
2018-07-09 10:12:11 +00:00
}
}
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:
2021-03-01 05:45:32 +00:00
func ( _m * MockLabelSource ) Name ( ) string {
2018-07-09 10:12:11 +00:00
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
}
2020-04-21 19:03:37 +00:00
2021-03-01 07:02:22 +00:00
// Priority provides a mock function with given fields:
func ( _m * MockLabelSource ) Priority ( ) int {
2020-04-21 19:03:37 +00:00
ret := _m . Called ( )
2021-03-01 07:02:22 +00:00
var r0 int
if rf , ok := ret . Get ( 0 ) . ( func ( ) int ) ; ok {
2020-04-21 19:03:37 +00:00
r0 = rf ( )
} else {
2021-03-01 07:02:22 +00:00
r0 = ret . Get ( 0 ) . ( int )
2020-04-21 19:03:37 +00:00
}
return r0
}
2022-06-15 09:20:49 +00:00
2023-07-27 09:05:23 +00:00
// 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.
// The first argument is typically a *testing.T value.
func NewMockLabelSource ( t interface {
2022-06-15 09:20:49 +00:00
mock . TestingT
Cleanup ( func ( ) )
2023-07-27 09:05:23 +00:00
} ) * MockLabelSource {
2022-06-15 09:20:49 +00:00
mock := & MockLabelSource { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}