Documentation ¶
Index ¶
- type SlackSender
- type SlackSender_Expecter
- type SlackSender_Send_Call
- func (_c *SlackSender_Send_Call) Return(_a0 error) *SlackSender_Send_Call
- func (_c *SlackSender_Send_Call) Run(run func(channel string, attachments []slack.Attachment)) *SlackSender_Send_Call
- func (_c *SlackSender_Send_Call) RunAndReturn(run func(string, []slack.Attachment) error) *SlackSender_Send_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackSender ¶
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 ¶
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 (_c *SlackSender_Send_Call) Return(_a0 error) *SlackSender_Send_Call
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
Click to show internal directories.
Click to hide internal directories.