state.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Code generated by mockery v2.14.0. DO NOT EDIT.
  2. package mocks
  3. import mock "github.com/stretchr/testify/mock"
  4. // State is an autogenerated mock type for the State type
  5. type State struct {
  6. mock.Mock
  7. }
  8. // Changed provides a mock function with given fields:
  9. func (_m *State) Changed() bool {
  10. ret := _m.Called()
  11. var r0 bool
  12. if rf, ok := ret.Get(0).(func() bool); ok {
  13. r0 = rf()
  14. } else {
  15. r0 = ret.Get(0).(bool)
  16. }
  17. return r0
  18. }
  19. // Present provides a mock function with given fields:
  20. func (_m *State) Present() bool {
  21. ret := _m.Called()
  22. var r0 bool
  23. if rf, ok := ret.Get(0).(func() bool); ok {
  24. r0 = rf()
  25. } else {
  26. r0 = ret.Get(0).(bool)
  27. }
  28. return r0
  29. }
  30. // Set provides a mock function with given fields: present
  31. func (_m *State) Set(present bool) {
  32. _m.Called(present)
  33. }
  34. type mockConstructorTestingTNewState interface {
  35. mock.TestingT
  36. Cleanup(func())
  37. }
  38. // NewState creates a new instance of State. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  39. func NewState(t mockConstructorTestingTNewState) *State {
  40. mock := &State{}
  41. mock.Mock.Test(t)
  42. t.Cleanup(func() { mock.AssertExpectations(t) })
  43. return mock
  44. }