mocks

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackSender

type SlackSender struct {
	mock.Mock
}

SlackSender is an autogenerated mock type for the SlackSender type

func NewSlackSender

func NewSlackSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *SlackSender

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

func (_m *SlackSender) EXPECT() *SlackSender_Expecter

func (*SlackSender) Send

func (_m *SlackSender) Send(channel string, attachments []slack.Attachment) error

Send provides a mock function with given fields: channel, attachments

type SlackSender_Expecter

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

func (*SlackSender_Expecter) Send

func (_e *SlackSender_Expecter) Send(channel interface{}, attachments interface{}) *SlackSender_Send_Call

Send is a helper method to define mock.On call

  • channel string
  • attachments []slack.Attachment

type SlackSender_Send_Call

type SlackSender_Send_Call struct {
	*mock.Call
}

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

func (*SlackSender_Send_Call) Return

func (*SlackSender_Send_Call) Run

func (_c *SlackSender_Send_Call) Run(run func(channel string, attachments []slack.Attachment)) *SlackSender_Send_Call

func (*SlackSender_Send_Call) RunAndReturn

func (_c *SlackSender_Send_Call) RunAndReturn(run func(string, []slack.Attachment) error) *SlackSender_Send_Call

Jump to

Keyboard shortcuts

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