birthdaybot/notification/mocks/service_mock.go

51 lines
1.6 KiB
Go
Raw Normal View History

// 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
import (
reflect "reflect"
2023-07-10 19:46:12 +01:00
template "text/template"
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 {
m.ctrl.T.Helper()
2023-07-10 19:46:12 +01:00
ret := m.ctrl.Call(m, "Notify", arg0, arg1)
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 {
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)
}