Documentation
¶
Index ¶
- type MockWebhookValidator
- type MockWebhookValidator_Expecter
- type MockWebhookValidator_ParseEvent_Call
- func (_c *MockWebhookValidator_ParseEvent_Call) Return(v any, err error) *MockWebhookValidator_ParseEvent_Call
- func (_c *MockWebhookValidator_ParseEvent_Call) Run(run func(eventType string, payload []byte)) *MockWebhookValidator_ParseEvent_Call
- func (_c *MockWebhookValidator_ParseEvent_Call) RunAndReturn(run func(eventType string, payload []byte) (any, error)) *MockWebhookValidator_ParseEvent_Call
- type MockWebhookValidator_ValidateWebhook_Call
- func (_c *MockWebhookValidator_ValidateWebhook_Call) Return(bytes []byte, err error) *MockWebhookValidator_ValidateWebhook_Call
- func (_c *MockWebhookValidator_ValidateWebhook_Call) Run(run func(r *http.Request)) *MockWebhookValidator_ValidateWebhook_Call
- func (_c *MockWebhookValidator_ValidateWebhook_Call) RunAndReturn(run func(r *http.Request) ([]byte, error)) *MockWebhookValidator_ValidateWebhook_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWebhookValidator ¶
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 (_m *MockWebhookValidator) EXPECT() *MockWebhookValidator_Expecter
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 ¶
func (_e *MockWebhookValidator_Expecter) ValidateWebhook(r any) *MockWebhookValidator_ValidateWebhook_Call
ValidateWebhook is a helper method to define mock.On call
- r *http.Request
type MockWebhookValidator_ParseEvent_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 (_c *MockWebhookValidator_ParseEvent_Call) Return(v any, err error) *MockWebhookValidator_ParseEvent_Call
func (*MockWebhookValidator_ParseEvent_Call) Run ¶
func (_c *MockWebhookValidator_ParseEvent_Call) Run(run func(eventType string, payload []byte)) *MockWebhookValidator_ParseEvent_Call
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 ¶
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 (_c *MockWebhookValidator_ValidateWebhook_Call) Return(bytes []byte, err error) *MockWebhookValidator_ValidateWebhook_Call
func (*MockWebhookValidator_ValidateWebhook_Call) Run ¶
func (_c *MockWebhookValidator_ValidateWebhook_Call) Run(run func(r *http.Request)) *MockWebhookValidator_ValidateWebhook_Call
func (*MockWebhookValidator_ValidateWebhook_Call) RunAndReturn ¶
func (_c *MockWebhookValidator_ValidateWebhook_Call) RunAndReturn(run func(r *http.Request) ([]byte, error)) *MockWebhookValidator_ValidateWebhook_Call