mocks

package
v1.1.35 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	mock.Mock
}

Slack is an autogenerated mock type for the Slack type

func NewSlack

func NewSlack(t interface {
	mock.TestingT
	Cleanup(func())
}) *Slack

NewSlack creates a new instance of Slack. 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 (*Slack) EXPECT

func (_m *Slack) EXPECT() *Slack_Expecter

func (*Slack) SendDevopsAlert

func (_m *Slack) SendDevopsAlert(title string, text string, ok bool) error

SendDevopsAlert provides a mock function with given fields: title, text, ok

func (*Slack) SendDirectMessage

func (_m *Slack) SendDirectMessage(email string, markdown string) error

SendDirectMessage provides a mock function with given fields: email, markdown

type Slack_Expecter

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

func (*Slack_Expecter) SendDevopsAlert

func (_e *Slack_Expecter) SendDevopsAlert(title interface{}, text interface{}, ok interface{}) *Slack_SendDevopsAlert_Call

SendDevopsAlert is a helper method to define mock.On call

  • title string
  • text string
  • ok bool

func (*Slack_Expecter) SendDirectMessage

func (_e *Slack_Expecter) SendDirectMessage(email interface{}, markdown interface{}) *Slack_SendDirectMessage_Call

SendDirectMessage is a helper method to define mock.On call

  • email string
  • markdown string

type Slack_SendDevopsAlert_Call

type Slack_SendDevopsAlert_Call struct {
	*mock.Call
}

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

func (*Slack_SendDevopsAlert_Call) Return

func (*Slack_SendDevopsAlert_Call) Run

func (_c *Slack_SendDevopsAlert_Call) Run(run func(title string, text string, ok bool)) *Slack_SendDevopsAlert_Call

func (*Slack_SendDevopsAlert_Call) RunAndReturn

type Slack_SendDirectMessage_Call

type Slack_SendDirectMessage_Call struct {
	*mock.Call
}

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

func (*Slack_SendDirectMessage_Call) Return

func (*Slack_SendDirectMessage_Call) Run

func (_c *Slack_SendDirectMessage_Call) Run(run func(email string, markdown string)) *Slack_SendDirectMessage_Call

func (*Slack_SendDirectMessage_Call) RunAndReturn

Jump to

Keyboard shortcuts

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