mocks

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 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 mockConstructorTestingTNewPagerDutyCaller) *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.

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

Jump to

Keyboard shortcuts

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