2023-07-10 11:29:25 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: service.go
|
|
|
|
|
2023-07-10 12:43:59 +01:00
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
2023-07-10 11:29:25 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
reflect "reflect"
|
2023-07-10 19:46:12 +01:00
|
|
|
template "text/template"
|
2023-07-10 11:29:25 +01:00
|
|
|
|
|
|
|
model "git.ctrlz.es/mgdelacroix/birthdaybot/model"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockNotificationService is a mock of NotificationService interface.
|
|
|
|
type MockNotificationService struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockNotificationServiceMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockNotificationServiceMockRecorder is the mock recorder for MockNotificationService.
|
|
|
|
type MockNotificationServiceMockRecorder struct {
|
|
|
|
mock *MockNotificationService
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockNotificationService creates a new mock instance.
|
|
|
|
func NewMockNotificationService(ctrl *gomock.Controller) *MockNotificationService {
|
|
|
|
mock := &MockNotificationService{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockNotificationServiceMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockNotificationService) EXPECT() *MockNotificationServiceMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Notify mocks base method.
|
2023-07-10 19:46:12 +01:00
|
|
|
func (m *MockNotificationService) Notify(arg0 *model.Birthday, arg1 *template.Template) error {
|
2023-07-10 11:29:25 +01:00
|
|
|
m.ctrl.T.Helper()
|
2023-07-10 19:46:12 +01:00
|
|
|
ret := m.ctrl.Call(m, "Notify", arg0, arg1)
|
2023-07-10 11:29:25 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Notify indicates an expected call of Notify.
|
2023-07-10 19:46:12 +01:00
|
|
|
func (mr *MockNotificationServiceMockRecorder) Notify(arg0, arg1 interface{}) *gomock.Call {
|
2023-07-10 11:29:25 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-07-10 19:46:12 +01:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockNotificationService)(nil).Notify), arg0, arg1)
|
2023-07-10 11:29:25 +01:00
|
|
|
}
|