mocks

package
v0.0.0-...-0a792b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactsGetter

type ContactsGetter struct {
	mock.Mock
}

ContactsGetter is an autogenerated mock type for the ContactsGetter type.

func (*ContactsGetter) GetEmail

func (s *ContactsGetter) GetEmail() string

GetEmail is method mock.

func (*ContactsGetter) GetTelegram

func (s *ContactsGetter) GetTelegram() string

GetTelegram is method mock.

func (*ContactsGetter) GetVK

func (s *ContactsGetter) GetVK() string

GetVK is method mock.

type EmailDialer

type EmailDialer struct {
	mock.Mock
}

EmailDialer is mock object.

func (*EmailDialer) DialAndSend

func (s *EmailDialer) DialAndSend(_ ...*gomail.Message) error

DialAndSend is method mock.

type Logger

type Logger struct {
	mock.Mock
}

Logger logs errors.

func (*Logger) Error

func (m *Logger) Error(args ...interface{})

Error is method mock.

func (*Logger) Infof

func (m *Logger) Infof(format string, args ...interface{})

Infof is method mock.

type MessageGetter

type MessageGetter struct {
	mock.Mock
}

MessageGetter is the interface for messages.

func (*MessageGetter) GetHTML

func (s *MessageGetter) GetHTML() string

GetHTML is method mock.

func (*MessageGetter) GetSubject

func (s *MessageGetter) GetSubject() string

GetSubject is method mock.

func (*MessageGetter) GetText

func (s *MessageGetter) GetText() string

GetText is method mock.

type TelegramBotSender

type TelegramBotSender struct {
	mock.Mock
}

TelegramBotSender is an autogenerated mock type for the TelegramBotSender type

func NewTelegramBotSender

func NewTelegramBotSender(t mockConstructorTestingTNewTelegramBotSender) *TelegramBotSender

NewTelegramBotSender creates a new instance of TelegramBotSender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TelegramBotSender) Send

Send provides a mock function with given fields: c

type VkAPISender

type VkAPISender struct {
	mock.Mock
}

VkAPISender is an autogenerated mock type for the VkAPISender type

func NewVkAPISender

func NewVkAPISender(t interface {
	mock.TestingT
	Cleanup(func())
}) *VkAPISender

NewVkAPISender creates a new instance of VkAPISender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VkAPISender) MessagesSend

func (_m *VkAPISender) MessagesSend(b api.Params) (int, error)

MessagesSend provides a mock function with given fields: b

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL