listener_mock.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: listener.go
  3. // Package internal is a generated GoMock package.
  4. package internal
  5. import (
  6. gomock "github.com/golang/mock/gomock"
  7. reflect "reflect"
  8. )
  9. // MockListener is a mock of Listener interface
  10. type MockListener struct {
  11. ctrl *gomock.Controller
  12. recorder *MockListenerMockRecorder
  13. }
  14. // MockListenerMockRecorder is the mock recorder for MockListener
  15. type MockListenerMockRecorder struct {
  16. mock *MockListener
  17. }
  18. // NewMockListener creates a new mock instance
  19. func NewMockListener(ctrl *gomock.Controller) *MockListener {
  20. mock := &MockListener{ctrl: ctrl}
  21. mock.recorder = &MockListenerMockRecorder{mock}
  22. return mock
  23. }
  24. // EXPECT returns an object that allows the caller to indicate expected use
  25. func (m *MockListener) EXPECT() *MockListenerMockRecorder {
  26. return m.recorder
  27. }
  28. // OnUpdate mocks base method
  29. func (m *MockListener) OnUpdate(keys, values []string, newKey string) {
  30. m.ctrl.T.Helper()
  31. m.ctrl.Call(m, "OnUpdate", keys, values, newKey)
  32. }
  33. // OnUpdate indicates an expected call of OnUpdate
  34. func (mr *MockListenerMockRecorder) OnUpdate(keys, values, newKey interface{}) *gomock.Call {
  35. mr.mock.ctrl.T.Helper()
  36. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnUpdate", reflect.TypeOf((*MockListener)(nil).OnUpdate), keys, values, newKey)
  37. }