mocks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	mock.Mock
}

Notifier is an autogenerated mock type for the Notifier type

func NewNotifier

func NewNotifier(t mockConstructorTestingTNewNotifier) *Notifier

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

func (*Notifier) EXPECT

func (_m *Notifier) EXPECT() *Notifier_Expecter

func (*Notifier) Notify

func (_m *Notifier) Notify(ctx context.Context, clusterName string, runID string) error

Notify provides a mock function with given fields: ctx, clusterName, runID

type Notifier_Expecter

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

func (*Notifier_Expecter) Notify

func (_e *Notifier_Expecter) Notify(ctx interface{}, clusterName interface{}, runID interface{}) *Notifier_Notify_Call

Notify is a helper method to define mock.On call

  • ctx context.Context
  • clusterName string
  • runID string

type Notifier_Notify_Call

type Notifier_Notify_Call struct {
	*mock.Call
}

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

func (*Notifier_Notify_Call) Return

func (*Notifier_Notify_Call) Run

func (_c *Notifier_Notify_Call) Run(run func(ctx context.Context, clusterName string, runID string)) *Notifier_Notify_Call

func (*Notifier_Notify_Call) RunAndReturn

Jump to

Keyboard shortcuts

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