mocks

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailSender added in v1.1.0

type EmailSender struct {
	mock.Mock
}

EmailSender is an autogenerated mock type for the EmailSender type

func NewEmailSender added in v1.3.1

func NewEmailSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *EmailSender

NewEmailSender creates a new instance of EmailSender. 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 (*EmailSender) Send added in v1.1.0

func (_m *EmailSender) Send(_a0 context.Context, _a1 *postmark.Email) error

Send provides a mock function with given fields: _a0, _a1

type Extension

type Extension struct {
	mock.Mock
}

Extension is an autogenerated mock type for the Extension type

func NewExtension added in v1.3.1

func NewExtension(t interface {
	mock.TestingT
	Cleanup(func())
}) *Extension

NewExtension creates a new instance of Extension. 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 (*Extension) Execute

func (_m *Extension) Execute(_a0 context.Context, _a1 common.Validator, _a2 *config.Form, _a3 map[string]string) (string, []*mautrix.ReqUploadMedia)

Execute provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Extension) Validate added in v1.4.1

func (_m *Extension) Validate(_a0 context.Context, _a1 common.Validator, _a2 *config.Form, _a3 map[string]string) error

Validate provides a mock function with given fields: _a0, _a1, _a2, _a3

type FormHandler

type FormHandler struct {
	mock.Mock
}

FormHandler is an autogenerated mock type for the FormHandler type

func NewFormHandler added in v1.3.1

func NewFormHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormHandler

NewFormHandler creates a new instance of FormHandler. 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 (*FormHandler) GET

func (_m *FormHandler) GET(_a0 context.Context, _a1 string, _a2 *http.Request) (string, error)

GET provides a mock function with given fields: _a0, _a1, _a2

func (*FormHandler) POST

func (_m *FormHandler) POST(_a0 context.Context, _a1 string, _a2 *http.Request) (string, error)

POST provides a mock function with given fields: _a0, _a1, _a2

type Linkpearl

type Linkpearl struct {
	mock.Mock
}

Linkpearl is an autogenerated mock type for the Linkpearl type

func NewLinkpearl added in v1.3.1

func NewLinkpearl(t interface {
	mock.TestingT
	Cleanup(func())
}) *Linkpearl

NewLinkpearl creates a new instance of Linkpearl. 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 (*Linkpearl) FindEventBy added in v1.4.0

func (_m *Linkpearl) FindEventBy(ctx context.Context, roomID id.RoomID, fieldValue map[string]string, fromToken ...string) *event.Event

FindEventBy provides a mock function with given fields: ctx, roomID, fieldValue, fromToken

func (*Linkpearl) GetClient

func (_m *Linkpearl) GetClient() *mautrix.Client

GetClient provides a mock function with given fields:

func (*Linkpearl) Send

func (_m *Linkpearl) Send(ctx context.Context, roomID id.RoomID, content interface{}) (id.EventID, error)

Send provides a mock function with given fields: ctx, roomID, content

func (*Linkpearl) SendFile added in v1.3.0

func (_m *Linkpearl) SendFile(ctx context.Context, roomID id.RoomID, req *mautrix.ReqUploadMedia, msgtype event.MessageType, relations ...*event.RelatesTo) error

SendFile provides a mock function with given fields: ctx, roomID, req, msgtype, relations

func (*Linkpearl) SendNotice added in v1.4.0

func (_m *Linkpearl) SendNotice(ctx context.Context, roomID id.RoomID, message string, relates ...*event.RelatesTo)

SendNotice provides a mock function with given fields: ctx, roomID, message, relates

func (*Linkpearl) Start

func (_m *Linkpearl) Start(ctx context.Context, optionalStatusMsg ...string) error

Start provides a mock function with given fields: ctx, optionalStatusMsg

func (*Linkpearl) Stop

func (_m *Linkpearl) Stop(ctx context.Context)

Stop provides a mock function with given fields: ctx

type Sender

type Sender struct {
	mock.Mock
}

Sender is an autogenerated mock type for the Sender type

func NewSender added in v1.3.1

func NewSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sender

NewSender creates a new instance of Sender. 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 (*Sender) Send

func (_m *Sender) Send(_a0 context.Context, _a1 id.RoomID, _a2 string, _a3 map[string]interface{}) id.EventID

Send provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Sender) SendFile

func (_m *Sender) SendFile(_a0 context.Context, _a1 id.RoomID, _a2 *mautrix.ReqUploadMedia, _a3 ...*event.RelatesTo)

SendFile provides a mock function with given fields: _a0, _a1, _a2, _a3

type Validator added in v1.3.0

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator added in v1.3.1

func NewValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Validator

NewValidator creates a new instance of Validator. 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 (*Validator) A added in v1.3.0

func (_m *Validator) A(_a0 string) bool

A provides a mock function with given fields: _a0

func (*Validator) CNAME added in v1.3.0

func (_m *Validator) CNAME(_a0 string) bool

CNAME provides a mock function with given fields: _a0

func (*Validator) Domain added in v1.3.0

func (_m *Validator) Domain(_a0 string) bool

Domain provides a mock function with given fields: _a0

func (*Validator) DomainString added in v1.3.0

func (_m *Validator) DomainString(_a0 string) bool

DomainString provides a mock function with given fields: _a0

func (*Validator) Email added in v1.3.0

func (_m *Validator) Email(_a0 string, _a1 ...net.IP) bool

Email provides a mock function with given fields: _a0, _a1

func (*Validator) GetBase added in v1.3.0

func (_m *Validator) GetBase(_a0 string) string

GetBase provides a mock function with given fields: _a0

func (*Validator) MX added in v1.3.0

func (_m *Validator) MX(_a0 string) bool

MX provides a mock function with given fields: _a0

func (*Validator) NS added in v1.4.0

func (_m *Validator) NS(_a0 string, _a1 ...string) bool

NS provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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