statewatcher_mock.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: statewatcher.go
  3. // Package internal is a generated GoMock package.
  4. package internal
  5. import (
  6. context "context"
  7. gomock "github.com/golang/mock/gomock"
  8. connectivity "google.golang.org/grpc/connectivity"
  9. reflect "reflect"
  10. )
  11. // MocketcdConn is a mock of etcdConn interface
  12. type MocketcdConn struct {
  13. ctrl *gomock.Controller
  14. recorder *MocketcdConnMockRecorder
  15. }
  16. // MocketcdConnMockRecorder is the mock recorder for MocketcdConn
  17. type MocketcdConnMockRecorder struct {
  18. mock *MocketcdConn
  19. }
  20. // NewMocketcdConn creates a new mock instance
  21. func NewMocketcdConn(ctrl *gomock.Controller) *MocketcdConn {
  22. mock := &MocketcdConn{ctrl: ctrl}
  23. mock.recorder = &MocketcdConnMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use
  27. func (m *MocketcdConn) EXPECT() *MocketcdConnMockRecorder {
  28. return m.recorder
  29. }
  30. // GetState mocks base method
  31. func (m *MocketcdConn) GetState() connectivity.State {
  32. m.ctrl.T.Helper()
  33. ret := m.ctrl.Call(m, "GetState")
  34. ret0, _ := ret[0].(connectivity.State)
  35. return ret0
  36. }
  37. // GetState indicates an expected call of GetState
  38. func (mr *MocketcdConnMockRecorder) GetState() *gomock.Call {
  39. mr.mock.ctrl.T.Helper()
  40. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetState", reflect.TypeOf((*MocketcdConn)(nil).GetState))
  41. }
  42. // WaitForStateChange mocks base method
  43. func (m *MocketcdConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool {
  44. m.ctrl.T.Helper()
  45. ret := m.ctrl.Call(m, "WaitForStateChange", ctx, sourceState)
  46. ret0, _ := ret[0].(bool)
  47. return ret0
  48. }
  49. // WaitForStateChange indicates an expected call of WaitForStateChange
  50. func (mr *MocketcdConnMockRecorder) WaitForStateChange(ctx, sourceState interface{}) *gomock.Call {
  51. mr.mock.ctrl.T.Helper()
  52. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForStateChange", reflect.TypeOf((*MocketcdConn)(nil).WaitForStateChange), ctx, sourceState)
  53. }