Files
cantabile-ha-addons/src/eebus-bridge/third_party/eebus-go/mocks/UseCaseInterface.go
T

355 lines
12 KiB
Go

// Code generated by mockery v2.43.2. DO NOT EDIT.
package mocks
import (
api "github.com/enbility/eebus-go/api"
mock "github.com/stretchr/testify/mock"
spine_goapi "github.com/enbility/spine-go/api"
)
// UseCaseInterface is an autogenerated mock type for the UseCaseInterface type
type UseCaseInterface struct {
mock.Mock
}
type UseCaseInterface_Expecter struct {
mock *mock.Mock
}
func (_m *UseCaseInterface) EXPECT() *UseCaseInterface_Expecter {
return &UseCaseInterface_Expecter{mock: &_m.Mock}
}
// AddFeatures provides a mock function with given fields:
func (_m *UseCaseInterface) AddFeatures() {
_m.Called()
}
// UseCaseInterface_AddFeatures_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFeatures'
type UseCaseInterface_AddFeatures_Call struct {
*mock.Call
}
// AddFeatures is a helper method to define mock.On call
func (_e *UseCaseInterface_Expecter) AddFeatures() *UseCaseInterface_AddFeatures_Call {
return &UseCaseInterface_AddFeatures_Call{Call: _e.mock.On("AddFeatures")}
}
func (_c *UseCaseInterface_AddFeatures_Call) Run(run func()) *UseCaseInterface_AddFeatures_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *UseCaseInterface_AddFeatures_Call) Return() *UseCaseInterface_AddFeatures_Call {
_c.Call.Return()
return _c
}
func (_c *UseCaseInterface_AddFeatures_Call) RunAndReturn(run func()) *UseCaseInterface_AddFeatures_Call {
_c.Call.Return(run)
return _c
}
// AddUseCase provides a mock function with given fields:
func (_m *UseCaseInterface) AddUseCase() {
_m.Called()
}
// UseCaseInterface_AddUseCase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUseCase'
type UseCaseInterface_AddUseCase_Call struct {
*mock.Call
}
// AddUseCase is a helper method to define mock.On call
func (_e *UseCaseInterface_Expecter) AddUseCase() *UseCaseInterface_AddUseCase_Call {
return &UseCaseInterface_AddUseCase_Call{Call: _e.mock.On("AddUseCase")}
}
func (_c *UseCaseInterface_AddUseCase_Call) Run(run func()) *UseCaseInterface_AddUseCase_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *UseCaseInterface_AddUseCase_Call) Return() *UseCaseInterface_AddUseCase_Call {
_c.Call.Return()
return _c
}
func (_c *UseCaseInterface_AddUseCase_Call) RunAndReturn(run func()) *UseCaseInterface_AddUseCase_Call {
_c.Call.Return(run)
return _c
}
// AvailableScenariosForEntity provides a mock function with given fields: entity
func (_m *UseCaseInterface) AvailableScenariosForEntity(entity spine_goapi.EntityRemoteInterface) []uint {
ret := _m.Called(entity)
if len(ret) == 0 {
panic("no return value specified for AvailableScenariosForEntity")
}
var r0 []uint
if rf, ok := ret.Get(0).(func(spine_goapi.EntityRemoteInterface) []uint); ok {
r0 = rf(entity)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]uint)
}
}
return r0
}
// UseCaseInterface_AvailableScenariosForEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AvailableScenariosForEntity'
type UseCaseInterface_AvailableScenariosForEntity_Call struct {
*mock.Call
}
// AvailableScenariosForEntity is a helper method to define mock.On call
// - entity spine_goapi.EntityRemoteInterface
func (_e *UseCaseInterface_Expecter) AvailableScenariosForEntity(entity interface{}) *UseCaseInterface_AvailableScenariosForEntity_Call {
return &UseCaseInterface_AvailableScenariosForEntity_Call{Call: _e.mock.On("AvailableScenariosForEntity", entity)}
}
func (_c *UseCaseInterface_AvailableScenariosForEntity_Call) Run(run func(entity spine_goapi.EntityRemoteInterface)) *UseCaseInterface_AvailableScenariosForEntity_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(spine_goapi.EntityRemoteInterface))
})
return _c
}
func (_c *UseCaseInterface_AvailableScenariosForEntity_Call) Return(_a0 []uint) *UseCaseInterface_AvailableScenariosForEntity_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *UseCaseInterface_AvailableScenariosForEntity_Call) RunAndReturn(run func(spine_goapi.EntityRemoteInterface) []uint) *UseCaseInterface_AvailableScenariosForEntity_Call {
_c.Call.Return(run)
return _c
}
// IsCompatibleEntityType provides a mock function with given fields: entity
func (_m *UseCaseInterface) IsCompatibleEntityType(entity spine_goapi.EntityRemoteInterface) bool {
ret := _m.Called(entity)
if len(ret) == 0 {
panic("no return value specified for IsCompatibleEntityType")
}
var r0 bool
if rf, ok := ret.Get(0).(func(spine_goapi.EntityRemoteInterface) bool); ok {
r0 = rf(entity)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// UseCaseInterface_IsCompatibleEntityType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsCompatibleEntityType'
type UseCaseInterface_IsCompatibleEntityType_Call struct {
*mock.Call
}
// IsCompatibleEntityType is a helper method to define mock.On call
// - entity spine_goapi.EntityRemoteInterface
func (_e *UseCaseInterface_Expecter) IsCompatibleEntityType(entity interface{}) *UseCaseInterface_IsCompatibleEntityType_Call {
return &UseCaseInterface_IsCompatibleEntityType_Call{Call: _e.mock.On("IsCompatibleEntityType", entity)}
}
func (_c *UseCaseInterface_IsCompatibleEntityType_Call) Run(run func(entity spine_goapi.EntityRemoteInterface)) *UseCaseInterface_IsCompatibleEntityType_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(spine_goapi.EntityRemoteInterface))
})
return _c
}
func (_c *UseCaseInterface_IsCompatibleEntityType_Call) Return(_a0 bool) *UseCaseInterface_IsCompatibleEntityType_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *UseCaseInterface_IsCompatibleEntityType_Call) RunAndReturn(run func(spine_goapi.EntityRemoteInterface) bool) *UseCaseInterface_IsCompatibleEntityType_Call {
_c.Call.Return(run)
return _c
}
// IsScenarioAvailableAtEntity provides a mock function with given fields: entity, scenario
func (_m *UseCaseInterface) IsScenarioAvailableAtEntity(entity spine_goapi.EntityRemoteInterface, scenario uint) bool {
ret := _m.Called(entity, scenario)
if len(ret) == 0 {
panic("no return value specified for IsScenarioAvailableAtEntity")
}
var r0 bool
if rf, ok := ret.Get(0).(func(spine_goapi.EntityRemoteInterface, uint) bool); ok {
r0 = rf(entity, scenario)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// UseCaseInterface_IsScenarioAvailableAtEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsScenarioAvailableAtEntity'
type UseCaseInterface_IsScenarioAvailableAtEntity_Call struct {
*mock.Call
}
// IsScenarioAvailableAtEntity is a helper method to define mock.On call
// - entity spine_goapi.EntityRemoteInterface
// - scenario uint
func (_e *UseCaseInterface_Expecter) IsScenarioAvailableAtEntity(entity interface{}, scenario interface{}) *UseCaseInterface_IsScenarioAvailableAtEntity_Call {
return &UseCaseInterface_IsScenarioAvailableAtEntity_Call{Call: _e.mock.On("IsScenarioAvailableAtEntity", entity, scenario)}
}
func (_c *UseCaseInterface_IsScenarioAvailableAtEntity_Call) Run(run func(entity spine_goapi.EntityRemoteInterface, scenario uint)) *UseCaseInterface_IsScenarioAvailableAtEntity_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(spine_goapi.EntityRemoteInterface), args[1].(uint))
})
return _c
}
func (_c *UseCaseInterface_IsScenarioAvailableAtEntity_Call) Return(_a0 bool) *UseCaseInterface_IsScenarioAvailableAtEntity_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *UseCaseInterface_IsScenarioAvailableAtEntity_Call) RunAndReturn(run func(spine_goapi.EntityRemoteInterface, uint) bool) *UseCaseInterface_IsScenarioAvailableAtEntity_Call {
_c.Call.Return(run)
return _c
}
// RemoteEntitiesScenarios provides a mock function with given fields:
func (_m *UseCaseInterface) RemoteEntitiesScenarios() []api.RemoteEntityScenarios {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for RemoteEntitiesScenarios")
}
var r0 []api.RemoteEntityScenarios
if rf, ok := ret.Get(0).(func() []api.RemoteEntityScenarios); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]api.RemoteEntityScenarios)
}
}
return r0
}
// UseCaseInterface_RemoteEntitiesScenarios_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoteEntitiesScenarios'
type UseCaseInterface_RemoteEntitiesScenarios_Call struct {
*mock.Call
}
// RemoteEntitiesScenarios is a helper method to define mock.On call
func (_e *UseCaseInterface_Expecter) RemoteEntitiesScenarios() *UseCaseInterface_RemoteEntitiesScenarios_Call {
return &UseCaseInterface_RemoteEntitiesScenarios_Call{Call: _e.mock.On("RemoteEntitiesScenarios")}
}
func (_c *UseCaseInterface_RemoteEntitiesScenarios_Call) Run(run func()) *UseCaseInterface_RemoteEntitiesScenarios_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *UseCaseInterface_RemoteEntitiesScenarios_Call) Return(_a0 []api.RemoteEntityScenarios) *UseCaseInterface_RemoteEntitiesScenarios_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *UseCaseInterface_RemoteEntitiesScenarios_Call) RunAndReturn(run func() []api.RemoteEntityScenarios) *UseCaseInterface_RemoteEntitiesScenarios_Call {
_c.Call.Return(run)
return _c
}
// RemoveUseCase provides a mock function with given fields:
func (_m *UseCaseInterface) RemoveUseCase() {
_m.Called()
}
// UseCaseInterface_RemoveUseCase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUseCase'
type UseCaseInterface_RemoveUseCase_Call struct {
*mock.Call
}
// RemoveUseCase is a helper method to define mock.On call
func (_e *UseCaseInterface_Expecter) RemoveUseCase() *UseCaseInterface_RemoveUseCase_Call {
return &UseCaseInterface_RemoveUseCase_Call{Call: _e.mock.On("RemoveUseCase")}
}
func (_c *UseCaseInterface_RemoveUseCase_Call) Run(run func()) *UseCaseInterface_RemoveUseCase_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *UseCaseInterface_RemoveUseCase_Call) Return() *UseCaseInterface_RemoveUseCase_Call {
_c.Call.Return()
return _c
}
func (_c *UseCaseInterface_RemoveUseCase_Call) RunAndReturn(run func()) *UseCaseInterface_RemoveUseCase_Call {
_c.Call.Return(run)
return _c
}
// UpdateUseCaseAvailability provides a mock function with given fields: available
func (_m *UseCaseInterface) UpdateUseCaseAvailability(available bool) {
_m.Called(available)
}
// UseCaseInterface_UpdateUseCaseAvailability_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUseCaseAvailability'
type UseCaseInterface_UpdateUseCaseAvailability_Call struct {
*mock.Call
}
// UpdateUseCaseAvailability is a helper method to define mock.On call
// - available bool
func (_e *UseCaseInterface_Expecter) UpdateUseCaseAvailability(available interface{}) *UseCaseInterface_UpdateUseCaseAvailability_Call {
return &UseCaseInterface_UpdateUseCaseAvailability_Call{Call: _e.mock.On("UpdateUseCaseAvailability", available)}
}
func (_c *UseCaseInterface_UpdateUseCaseAvailability_Call) Run(run func(available bool)) *UseCaseInterface_UpdateUseCaseAvailability_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(bool))
})
return _c
}
func (_c *UseCaseInterface_UpdateUseCaseAvailability_Call) Return() *UseCaseInterface_UpdateUseCaseAvailability_Call {
_c.Call.Return()
return _c
}
func (_c *UseCaseInterface_UpdateUseCaseAvailability_Call) RunAndReturn(run func(bool)) *UseCaseInterface_UpdateUseCaseAvailability_Call {
_c.Call.Return(run)
return _c
}
// NewUseCaseInterface creates a new instance of UseCaseInterface. 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 NewUseCaseInterface(t interface {
mock.TestingT
Cleanup(func())
}) *UseCaseInterface {
mock := &UseCaseInterface{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}