mocks

package
v0.0.43 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackNotifier

type SlackNotifier struct {
	mock.Mock
}

SlackNotifier is an autogenerated mock type for the SlackNotifier type

func NewSlackNotifier

func NewSlackNotifier(t mockConstructorTestingTNewSlackNotifier) *SlackNotifier

NewSlackNotifier creates a new instance of SlackNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SlackNotifier) EXPECT

func (_m *SlackNotifier) EXPECT() *SlackNotifier_Expecter

func (*SlackNotifier) Error

func (_m *SlackNotifier) Error(entry *cache.Entry, message string) error

Error provides a mock function with given fields: entry, message

func (*SlackNotifier) KeyDeleted

func (_m *SlackNotifier) KeyDeleted(entry *cache.Entry, id string) error

KeyDeleted provides a mock function with given fields: entry, id

func (*SlackNotifier) KeyDisabled

func (_m *SlackNotifier) KeyDisabled(entry *cache.Entry, id string) error

KeyDisabled provides a mock function with given fields: entry, id

func (*SlackNotifier) KeyIssued

func (_m *SlackNotifier) KeyIssued(entry *cache.Entry, id string) error

KeyIssued provides a mock function with given fields: entry, id

type SlackNotifier_Error_Call

type SlackNotifier_Error_Call struct {
	*mock.Call
}

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

func (*SlackNotifier_Error_Call) Return

func (*SlackNotifier_Error_Call) Run

func (_c *SlackNotifier_Error_Call) Run(run func(entry *cache.Entry, message string)) *SlackNotifier_Error_Call

func (*SlackNotifier_Error_Call) RunAndReturn

type SlackNotifier_Expecter

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

func (*SlackNotifier_Expecter) Error

func (_e *SlackNotifier_Expecter) Error(entry interface{}, message interface{}) *SlackNotifier_Error_Call

Error is a helper method to define mock.On call

  • entry *cache.Entry
  • message string

func (*SlackNotifier_Expecter) KeyDeleted

func (_e *SlackNotifier_Expecter) KeyDeleted(entry interface{}, id interface{}) *SlackNotifier_KeyDeleted_Call

KeyDeleted is a helper method to define mock.On call

  • entry *cache.Entry
  • id string

func (*SlackNotifier_Expecter) KeyDisabled

func (_e *SlackNotifier_Expecter) KeyDisabled(entry interface{}, id interface{}) *SlackNotifier_KeyDisabled_Call

KeyDisabled is a helper method to define mock.On call

  • entry *cache.Entry
  • id string

func (*SlackNotifier_Expecter) KeyIssued

func (_e *SlackNotifier_Expecter) KeyIssued(entry interface{}, id interface{}) *SlackNotifier_KeyIssued_Call

KeyIssued is a helper method to define mock.On call

  • entry *cache.Entry
  • id string

type SlackNotifier_KeyDeleted_Call

type SlackNotifier_KeyDeleted_Call struct {
	*mock.Call
}

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

func (*SlackNotifier_KeyDeleted_Call) Return

func (*SlackNotifier_KeyDeleted_Call) Run

func (*SlackNotifier_KeyDeleted_Call) RunAndReturn

type SlackNotifier_KeyDisabled_Call

type SlackNotifier_KeyDisabled_Call struct {
	*mock.Call
}

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

func (*SlackNotifier_KeyDisabled_Call) Return

func (*SlackNotifier_KeyDisabled_Call) Run

func (*SlackNotifier_KeyDisabled_Call) RunAndReturn

type SlackNotifier_KeyIssued_Call

type SlackNotifier_KeyIssued_Call struct {
	*mock.Call
}

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

func (*SlackNotifier_KeyIssued_Call) Return

func (*SlackNotifier_KeyIssued_Call) Run

func (*SlackNotifier_KeyIssued_Call) RunAndReturn

Jump to

Keyboard shortcuts

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