mocks

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 NewRelic

type NewRelic struct {
	mock.Mock
}

NewRelic is an autogenerated mock type for the Service type

func NewNewRelic

func NewNewRelic(t interface {
	mock.TestingT
	Cleanup(func())
}) *NewRelic

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

func (_m *NewRelic) EXPECT() *NewRelic_Expecter

func (*NewRelic) StartGenericSegment

func (_m *NewRelic) StartGenericSegment(_a0 context.Context, _a1 string) func()

StartGenericSegment provides a mock function with given fields: _a0, _a1

type NewRelic_Expecter

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

func (*NewRelic_Expecter) StartGenericSegment

func (_e *NewRelic_Expecter) StartGenericSegment(_a0 interface{}, _a1 interface{}) *NewRelic_StartGenericSegment_Call

StartGenericSegment is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

type NewRelic_StartGenericSegment_Call

type NewRelic_StartGenericSegment_Call struct {
	*mock.Call
}

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

func (*NewRelic_StartGenericSegment_Call) Return

func (*NewRelic_StartGenericSegment_Call) Run

func (*NewRelic_StartGenericSegment_Call) RunAndReturn

Jump to

Keyboard shortcuts

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