mocks

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWebhookValidator

type MockWebhookValidator struct {
	mock.Mock
}

MockWebhookValidator is an autogenerated mock type for the WebhookValidator type

func NewMockWebhookValidator

func NewMockWebhookValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWebhookValidator

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

func (*MockWebhookValidator) ParseEvent

func (_mock *MockWebhookValidator) ParseEvent(eventType string, payload []byte) (any, error)

ParseEvent provides a mock function for the type MockWebhookValidator

func (*MockWebhookValidator) ValidateWebhook

func (_mock *MockWebhookValidator) ValidateWebhook(r *http.Request) ([]byte, error)

ValidateWebhook provides a mock function for the type MockWebhookValidator

type MockWebhookValidator_Expecter

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

func (*MockWebhookValidator_Expecter) ParseEvent

func (_e *MockWebhookValidator_Expecter) ParseEvent(eventType any, payload any) *MockWebhookValidator_ParseEvent_Call

ParseEvent is a helper method to define mock.On call

  • eventType string
  • payload []byte

func (*MockWebhookValidator_Expecter) ValidateWebhook

ValidateWebhook is a helper method to define mock.On call

  • r *http.Request

type MockWebhookValidator_ParseEvent_Call

type MockWebhookValidator_ParseEvent_Call struct {
	*mock.Call
}

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

func (*MockWebhookValidator_ParseEvent_Call) Return

func (*MockWebhookValidator_ParseEvent_Call) Run

func (*MockWebhookValidator_ParseEvent_Call) RunAndReturn

func (_c *MockWebhookValidator_ParseEvent_Call) RunAndReturn(run func(eventType string, payload []byte) (any, error)) *MockWebhookValidator_ParseEvent_Call

type MockWebhookValidator_ValidateWebhook_Call

type MockWebhookValidator_ValidateWebhook_Call struct {
	*mock.Call
}

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

func (*MockWebhookValidator_ValidateWebhook_Call) Return

func (*MockWebhookValidator_ValidateWebhook_Call) Run

func (*MockWebhookValidator_ValidateWebhook_Call) RunAndReturn

Jump to

Keyboard shortcuts

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