mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
df016be29e
* fix(notification): incorrect date header format The date header in the email envelopes was incorrectly formatted missing a space between the `Date:` header and the value of this header. This also refactors the notification templates system allowing people to manually override the envelope itself. * test: fix tests and linting issues * fix: misc issues * refactor: misc refactoring * docs: add example for envelope with message id * refactor: organize smtp notifier * refactor: move subject interpolation * refactor: include additional placeholders * docs: fix missing link * docs: gravity * fix: rcpt to command * refactor: remove mid * refactor: apply suggestions Co-authored-by: Amir Zarrinkafsh <nightah@me.com> * refactor: include pid Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
64 lines
1.9 KiB
Go
64 lines
1.9 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/authelia/authelia/v4/internal/notification (interfaces: Notifier)
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
mail "net/mail"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockNotifier is a mock of Notifier interface.
|
|
type MockNotifier struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockNotifierMockRecorder
|
|
}
|
|
|
|
// MockNotifierMockRecorder is the mock recorder for MockNotifier.
|
|
type MockNotifierMockRecorder struct {
|
|
mock *MockNotifier
|
|
}
|
|
|
|
// NewMockNotifier creates a new mock instance.
|
|
func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier {
|
|
mock := &MockNotifier{ctrl: ctrl}
|
|
mock.recorder = &MockNotifierMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Send mocks base method.
|
|
func (m *MockNotifier) Send(arg0 mail.Address, arg1, arg2, arg3 string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Send", arg0, arg1, arg2, arg3)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Send indicates an expected call of Send.
|
|
func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockNotifier)(nil).Send), arg0, arg1, arg2, arg3)
|
|
}
|
|
|
|
// StartupCheck mocks base method.
|
|
func (m *MockNotifier) StartupCheck() error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "StartupCheck")
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// StartupCheck indicates an expected call of StartupCheck.
|
|
func (mr *MockNotifierMockRecorder) StartupCheck() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartupCheck", reflect.TypeOf((*MockNotifier)(nil).StartupCheck))
|
|
}
|