mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer struct {
	mock.Mock
}

Dialer is an autogenerated mock type for the Dialer type

func NewDialer

func NewDialer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Dialer

NewDialer creates a new instance of Dialer. 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 (*Dialer) DialAndSend

func (_m *Dialer) DialAndSend(m *mail.Message) error

DialAndSend provides a mock function with given fields: m

func (*Dialer) EXPECT

func (_m *Dialer) EXPECT() *Dialer_Expecter

func (*Dialer) FromHeader

func (_m *Dialer) FromHeader() string

FromHeader provides a mock function with given fields:

type Dialer_DialAndSend_Call

type Dialer_DialAndSend_Call struct {
	*mock.Call
}

Dialer_DialAndSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DialAndSend'

func (*Dialer_DialAndSend_Call) Return

func (*Dialer_DialAndSend_Call) Run

func (*Dialer_DialAndSend_Call) RunAndReturn

func (_c *Dialer_DialAndSend_Call) RunAndReturn(run func(*mail.Message) error) *Dialer_DialAndSend_Call

type Dialer_Expecter

type Dialer_Expecter struct {
	// contains filtered or unexported fields
}

func (*Dialer_Expecter) DialAndSend

func (_e *Dialer_Expecter) DialAndSend(m interface{}) *Dialer_DialAndSend_Call

DialAndSend is a helper method to define mock.On call

  • m *mail.Message

func (*Dialer_Expecter) FromHeader

func (_e *Dialer_Expecter) FromHeader() *Dialer_FromHeader_Call

FromHeader is a helper method to define mock.On call

type Dialer_FromHeader_Call

type Dialer_FromHeader_Call struct {
	*mock.Call
}

Dialer_FromHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FromHeader'

func (*Dialer_FromHeader_Call) Return

func (*Dialer_FromHeader_Call) Run

func (_c *Dialer_FromHeader_Call) Run(run func()) *Dialer_FromHeader_Call

func (*Dialer_FromHeader_Call) RunAndReturn

func (_c *Dialer_FromHeader_Call) RunAndReturn(run func() string) *Dialer_FromHeader_Call

Jump to

Keyboard shortcuts

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