mockpyroscope

package
v0.0.102-dev Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPushService

type MockPushService struct {
	mock.Mock
}

MockPushService is an autogenerated mock type for the PushService type

func NewMockPushService

func NewMockPushService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPushService

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

func (*MockPushService) Push

Push provides a mock function with given fields: ctx, req

func (*MockPushService) PushParsed

PushParsed provides a mock function with given fields: ctx, req

type MockPushService_Expecter

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

func (*MockPushService_Expecter) Push

func (_e *MockPushService_Expecter) Push(ctx interface{}, req interface{}) *MockPushService_Push_Call

Push is a helper method to define mock.On call

  • ctx context.Context
  • req *connect.Request[pushv1.PushRequest]

func (*MockPushService_Expecter) PushParsed

func (_e *MockPushService_Expecter) PushParsed(ctx interface{}, req interface{}) *MockPushService_PushParsed_Call

PushParsed is a helper method to define mock.On call

  • ctx context.Context
  • req *model.PushRequest

type MockPushService_PushParsed_Call

type MockPushService_PushParsed_Call struct {
	*mock.Call
}

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

func (*MockPushService_PushParsed_Call) Return

func (*MockPushService_PushParsed_Call) Run

func (*MockPushService_PushParsed_Call) RunAndReturn

type MockPushService_Push_Call

type MockPushService_Push_Call struct {
	*mock.Call
}

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

func (*MockPushService_Push_Call) Return

func (*MockPushService_Push_Call) Run

Jump to

Keyboard shortcuts

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