EdgexAgent/device-gps-go/pkg/interfaces/mocks/UpdatableConfig.go
2025-07-10 20:30:06 +08:00

40 lines
1020 B
Go

// Code generated by mockery v2.20.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// UpdatableConfig is an autogenerated mock type for the UpdatableConfig type
type UpdatableConfig struct {
mock.Mock
}
// UpdateFromRaw provides a mock function with given fields: rawConfig
func (_m *UpdatableConfig) UpdateFromRaw(rawConfig interface{}) bool {
ret := _m.Called(rawConfig)
var r0 bool
if rf, ok := ret.Get(0).(func(interface{}) bool); ok {
r0 = rf(rawConfig)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
type mockConstructorTestingTNewUpdatableConfig interface {
mock.TestingT
Cleanup(func())
}
// NewUpdatableConfig creates a new instance of UpdatableConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewUpdatableConfig(t mockConstructorTestingTNewUpdatableConfig) *UpdatableConfig {
mock := &UpdatableConfig{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}