state.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. // Reset provides a mock function with given fields:
  31. func (_m *State) Reset() {
  32. _m.Called()
  33. }
  34. // Set provides a mock function with given fields: present
  35. func (_m *State) Set(present bool) {
  36. _m.Called(present)
  37. }
  38. type mockConstructorTestingTNewState interface {
  39. mock.TestingT
  40. Cleanup(func())
  41. }
  42. // 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.
  43. func NewState(t mockConstructorTestingTNewState) *State {
  44. mock := &State{}
  45. mock.Mock.Test(t)
  46. t.Cleanup(func() { mock.AssertExpectations(t) })
  47. return mock
  48. }