Documentation ¶
Index ¶
- type Slack
- type Slack_Expecter
- type Slack_SendDevopsAlert_Call
- func (_c *Slack_SendDevopsAlert_Call) Return(_a0 error) *Slack_SendDevopsAlert_Call
- func (_c *Slack_SendDevopsAlert_Call) Run(run func(title string, text string, ok bool)) *Slack_SendDevopsAlert_Call
- func (_c *Slack_SendDevopsAlert_Call) RunAndReturn(run func(string, string, bool) error) *Slack_SendDevopsAlert_Call
- type Slack_SendDirectMessage_Call
- func (_c *Slack_SendDirectMessage_Call) Return(_a0 error) *Slack_SendDirectMessage_Call
- func (_c *Slack_SendDirectMessage_Call) Run(run func(email string, markdown string)) *Slack_SendDirectMessage_Call
- func (_c *Slack_SendDirectMessage_Call) RunAndReturn(run func(string, string) error) *Slack_SendDirectMessage_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slack ¶
Slack is an autogenerated mock type for the Slack type
func NewSlack ¶
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 ¶
SendDevopsAlert provides a mock function with given fields: title, text, ok
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 ¶
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 (_c *Slack_SendDevopsAlert_Call) Return(_a0 error) *Slack_SendDevopsAlert_Call
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 ¶
func (_c *Slack_SendDevopsAlert_Call) RunAndReturn(run func(string, string, bool) error) *Slack_SendDevopsAlert_Call
type Slack_SendDirectMessage_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 (_c *Slack_SendDirectMessage_Call) Return(_a0 error) *Slack_SendDirectMessage_Call
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 ¶
func (_c *Slack_SendDirectMessage_Call) RunAndReturn(run func(string, string) error) *Slack_SendDirectMessage_Call