mocks

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PagerDutyCaller

type PagerDutyCaller struct {
	mock.Mock
}

PagerDutyCaller is an autogenerated mock type for the PagerDutyCaller type

func NewPagerDutyCaller

func NewPagerDutyCaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *PagerDutyCaller

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

func (*PagerDutyCaller) NotifyV1

func (_m *PagerDutyCaller) NotifyV1(ctx context.Context, message pagerduty.MessageV1) error

NotifyV1 provides a mock function with given fields: ctx, message

type PagerDutyCaller_Expecter

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

func (*PagerDutyCaller_Expecter) NotifyV1

func (_e *PagerDutyCaller_Expecter) NotifyV1(ctx interface{}, message interface{}) *PagerDutyCaller_NotifyV1_Call

NotifyV1 is a helper method to define mock.On call

  • ctx context.Context
  • message pagerduty.MessageV1

type PagerDutyCaller_NotifyV1_Call

type PagerDutyCaller_NotifyV1_Call struct {
	*mock.Call
}

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

func (*PagerDutyCaller_NotifyV1_Call) Return

func (*PagerDutyCaller_NotifyV1_Call) Run

func (*PagerDutyCaller_NotifyV1_Call) RunAndReturn added in v0.6.1

Jump to

Keyboard shortcuts

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