github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/aagent/machine/notifications_mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: notifications.go
     3  
     4  // Package machine is a generated GoMock package.
     5  package machine
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	sdk_go "github.com/cloudevents/sdk-go/v2"
    11  	gomock "github.com/golang/mock/gomock"
    12  )
    13  
    14  // MockInfoSource is a mock of InfoSource interface
    15  type MockInfoSource struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockInfoSourceMockRecorder
    18  }
    19  
    20  // MockInfoSourceMockRecorder is the mock recorder for MockInfoSource
    21  type MockInfoSourceMockRecorder struct {
    22  	mock *MockInfoSource
    23  }
    24  
    25  // NewMockInfoSource creates a new mock instance
    26  func NewMockInfoSource(ctrl *gomock.Controller) *MockInfoSource {
    27  	mock := &MockInfoSource{ctrl: ctrl}
    28  	mock.recorder = &MockInfoSourceMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *MockInfoSource) EXPECT() *MockInfoSourceMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Identity mocks base method
    38  func (m *MockInfoSource) Identity() string {
    39  	ret := m.ctrl.Call(m, "Identity")
    40  	ret0, _ := ret[0].(string)
    41  	return ret0
    42  }
    43  
    44  // Identity indicates an expected call of Identity
    45  func (mr *MockInfoSourceMockRecorder) Identity() *gomock.Call {
    46  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identity", reflect.TypeOf((*MockInfoSource)(nil).Identity))
    47  }
    48  
    49  // Version mocks base method
    50  func (m *MockInfoSource) Version() string {
    51  	ret := m.ctrl.Call(m, "Version")
    52  	ret0, _ := ret[0].(string)
    53  	return ret0
    54  }
    55  
    56  // Version indicates an expected call of Version
    57  func (mr *MockInfoSourceMockRecorder) Version() *gomock.Call {
    58  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockInfoSource)(nil).Version))
    59  }
    60  
    61  // Name mocks base method
    62  func (m *MockInfoSource) Name() string {
    63  	ret := m.ctrl.Call(m, "Name")
    64  	ret0, _ := ret[0].(string)
    65  	return ret0
    66  }
    67  
    68  // Name indicates an expected call of Name
    69  func (mr *MockInfoSourceMockRecorder) Name() *gomock.Call {
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockInfoSource)(nil).Name))
    71  }
    72  
    73  // State mocks base method
    74  func (m *MockInfoSource) State() string {
    75  	ret := m.ctrl.Call(m, "State")
    76  	ret0, _ := ret[0].(string)
    77  	return ret0
    78  }
    79  
    80  // State indicates an expected call of State
    81  func (mr *MockInfoSourceMockRecorder) State() *gomock.Call {
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "State", reflect.TypeOf((*MockInfoSource)(nil).State))
    83  }
    84  
    85  // InstanceID mocks base method
    86  func (m *MockInfoSource) InstanceID() string {
    87  	ret := m.ctrl.Call(m, "InstanceID")
    88  	ret0, _ := ret[0].(string)
    89  	return ret0
    90  }
    91  
    92  // InstanceID indicates an expected call of InstanceID
    93  func (mr *MockInfoSourceMockRecorder) InstanceID() *gomock.Call {
    94  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceID", reflect.TypeOf((*MockInfoSource)(nil).InstanceID))
    95  }
    96  
    97  // MockWatcherStateNotification is a mock of WatcherStateNotification interface
    98  type MockWatcherStateNotification struct {
    99  	ctrl     *gomock.Controller
   100  	recorder *MockWatcherStateNotificationMockRecorder
   101  }
   102  
   103  // MockWatcherStateNotificationMockRecorder is the mock recorder for MockWatcherStateNotification
   104  type MockWatcherStateNotificationMockRecorder struct {
   105  	mock *MockWatcherStateNotification
   106  }
   107  
   108  // NewMockWatcherStateNotification creates a new mock instance
   109  func NewMockWatcherStateNotification(ctrl *gomock.Controller) *MockWatcherStateNotification {
   110  	mock := &MockWatcherStateNotification{ctrl: ctrl}
   111  	mock.recorder = &MockWatcherStateNotificationMockRecorder{mock}
   112  	return mock
   113  }
   114  
   115  // EXPECT returns an object that allows the caller to indicate expected use
   116  func (m *MockWatcherStateNotification) EXPECT() *MockWatcherStateNotificationMockRecorder {
   117  	return m.recorder
   118  }
   119  
   120  // JSON mocks base method
   121  func (m *MockWatcherStateNotification) JSON() ([]byte, error) {
   122  	ret := m.ctrl.Call(m, "JSON")
   123  	ret0, _ := ret[0].([]byte)
   124  	ret1, _ := ret[1].(error)
   125  	return ret0, ret1
   126  }
   127  
   128  // JSON indicates an expected call of JSON
   129  func (mr *MockWatcherStateNotificationMockRecorder) JSON() *gomock.Call {
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "JSON", reflect.TypeOf((*MockWatcherStateNotification)(nil).JSON))
   131  }
   132  
   133  // CloudEvent mocks base method
   134  func (m *MockWatcherStateNotification) CloudEvent() sdk_go.Event {
   135  	ret := m.ctrl.Call(m, "CloudEvent")
   136  	ret0, _ := ret[0].(sdk_go.Event)
   137  	return ret0
   138  }
   139  
   140  // CloudEvent indicates an expected call of CloudEvent
   141  func (mr *MockWatcherStateNotificationMockRecorder) CloudEvent() *gomock.Call {
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloudEvent", reflect.TypeOf((*MockWatcherStateNotification)(nil).CloudEvent))
   143  }
   144  
   145  // String mocks base method
   146  func (m *MockWatcherStateNotification) String() string {
   147  	ret := m.ctrl.Call(m, "String")
   148  	ret0, _ := ret[0].(string)
   149  	return ret0
   150  }
   151  
   152  // String indicates an expected call of String
   153  func (mr *MockWatcherStateNotificationMockRecorder) String() *gomock.Call {
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockWatcherStateNotification)(nil).String))
   155  }
   156  
   157  // WatcherType mocks base method
   158  func (m *MockWatcherStateNotification) WatcherType() string {
   159  	ret := m.ctrl.Call(m, "WatcherType")
   160  	ret0, _ := ret[0].(string)
   161  	return ret0
   162  }
   163  
   164  // WatcherType indicates an expected call of WatcherType
   165  func (mr *MockWatcherStateNotificationMockRecorder) WatcherType() *gomock.Call {
   166  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatcherType", reflect.TypeOf((*MockWatcherStateNotification)(nil).WatcherType))
   167  }
   168  
   169  // SenderID mocks base method
   170  func (m *MockWatcherStateNotification) SenderID() string {
   171  	ret := m.ctrl.Call(m, "SenderID")
   172  	ret0, _ := ret[0].(string)
   173  	return ret0
   174  }
   175  
   176  // SenderID indicates an expected call of SenderID
   177  func (mr *MockWatcherStateNotificationMockRecorder) SenderID() *gomock.Call {
   178  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SenderID", reflect.TypeOf((*MockWatcherStateNotification)(nil).SenderID))
   179  }
   180  
   181  // MockNotificationService is a mock of NotificationService interface
   182  type MockNotificationService struct {
   183  	ctrl     *gomock.Controller
   184  	recorder *MockNotificationServiceMockRecorder
   185  }
   186  
   187  // MockNotificationServiceMockRecorder is the mock recorder for MockNotificationService
   188  type MockNotificationServiceMockRecorder struct {
   189  	mock *MockNotificationService
   190  }
   191  
   192  // NewMockNotificationService creates a new mock instance
   193  func NewMockNotificationService(ctrl *gomock.Controller) *MockNotificationService {
   194  	mock := &MockNotificationService{ctrl: ctrl}
   195  	mock.recorder = &MockNotificationServiceMockRecorder{mock}
   196  	return mock
   197  }
   198  
   199  // EXPECT returns an object that allows the caller to indicate expected use
   200  func (m *MockNotificationService) EXPECT() *MockNotificationServiceMockRecorder {
   201  	return m.recorder
   202  }
   203  
   204  // NotifyPostTransition mocks base method
   205  func (m *MockNotificationService) NotifyPostTransition(t *TransitionNotification) error {
   206  	ret := m.ctrl.Call(m, "NotifyPostTransition", t)
   207  	ret0, _ := ret[0].(error)
   208  	return ret0
   209  }
   210  
   211  // NotifyPostTransition indicates an expected call of NotifyPostTransition
   212  func (mr *MockNotificationServiceMockRecorder) NotifyPostTransition(t any) *gomock.Call {
   213  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyPostTransition", reflect.TypeOf((*MockNotificationService)(nil).NotifyPostTransition), t)
   214  }
   215  
   216  // NotifyWatcherState mocks base method
   217  func (m *MockNotificationService) NotifyWatcherState(watcher string, state WatcherStateNotification) error {
   218  	ret := m.ctrl.Call(m, "NotifyWatcherState", watcher, state)
   219  	ret0, _ := ret[0].(error)
   220  	return ret0
   221  }
   222  
   223  // NotifyWatcherState indicates an expected call of NotifyWatcherState
   224  func (mr *MockNotificationServiceMockRecorder) NotifyWatcherState(watcher, state any) *gomock.Call {
   225  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyWatcherState", reflect.TypeOf((*MockNotificationService)(nil).NotifyWatcherState), watcher, state)
   226  }
   227  
   228  // Debugf mocks base method
   229  func (m *MockNotificationService) Debugf(machine InfoSource, watcher, format string, args ...any) {
   230  	varargs := []any{machine, watcher, format}
   231  	for _, a := range args {
   232  		varargs = append(varargs, a)
   233  	}
   234  	m.ctrl.Call(m, "Debugf", varargs...)
   235  }
   236  
   237  // Debugf indicates an expected call of Debugf
   238  func (mr *MockNotificationServiceMockRecorder) Debugf(machine, watcher, format any, args ...any) *gomock.Call {
   239  	varargs := append([]any{machine, watcher, format}, args...)
   240  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Debugf", reflect.TypeOf((*MockNotificationService)(nil).Debugf), varargs...)
   241  }
   242  
   243  // Infof mocks base method
   244  func (m *MockNotificationService) Infof(machine InfoSource, watcher, format string, args ...any) {
   245  	varargs := []any{machine, watcher, format}
   246  	for _, a := range args {
   247  		varargs = append(varargs, a)
   248  	}
   249  	m.ctrl.Call(m, "Infof", varargs...)
   250  }
   251  
   252  // Infof indicates an expected call of Infof
   253  func (mr *MockNotificationServiceMockRecorder) Infof(machine, watcher, format any, args ...any) *gomock.Call {
   254  	varargs := append([]any{machine, watcher, format}, args...)
   255  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Infof", reflect.TypeOf((*MockNotificationService)(nil).Infof), varargs...)
   256  }
   257  
   258  // Warnf mocks base method
   259  func (m *MockNotificationService) Warnf(machine InfoSource, watcher, format string, args ...any) {
   260  	varargs := []any{machine, watcher, format}
   261  	for _, a := range args {
   262  		varargs = append(varargs, a)
   263  	}
   264  	m.ctrl.Call(m, "Warnf", varargs...)
   265  }
   266  
   267  // Warnf indicates an expected call of Warnf
   268  func (mr *MockNotificationServiceMockRecorder) Warnf(machine, watcher, format any, args ...any) *gomock.Call {
   269  	varargs := append([]any{machine, watcher, format}, args...)
   270  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Warnf", reflect.TypeOf((*MockNotificationService)(nil).Warnf), varargs...)
   271  }
   272  
   273  // Errorf mocks base method
   274  func (m *MockNotificationService) Errorf(machine InfoSource, watcher, format string, args ...any) {
   275  	varargs := []any{machine, watcher, format}
   276  	for _, a := range args {
   277  		varargs = append(varargs, a)
   278  	}
   279  	m.ctrl.Call(m, "Errorf", varargs...)
   280  }
   281  
   282  // Errorf indicates an expected call of Errorf
   283  func (mr *MockNotificationServiceMockRecorder) Errorf(machine, watcher, format any, args ...any) *gomock.Call {
   284  	varargs := append([]any{machine, watcher, format}, args...)
   285  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Errorf", reflect.TypeOf((*MockNotificationService)(nil).Errorf), varargs...)
   286  }