misp_mocks

package
v0.4.3-final-apache Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 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 Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) AddEventReport

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

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) RestSearchEvents

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

type Client_AddEventReport_Call

type Client_AddEventReport_Call struct {
	*mock.Call
}

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

func (*Client_AddEventReport_Call) Return

func (*Client_AddEventReport_Call) Run

type Client_Expecter

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

func (*Client_Expecter) AddEventReport

func (_e *Client_Expecter) AddEventReport(ctx interface{}, req interface{}) *Client_AddEventReport_Call

AddEventReport is a helper method to define mock.On call

  • ctx context.Context
  • req client.AddEventReportRequest

func (*Client_Expecter) RestSearchEvents

func (_e *Client_Expecter) RestSearchEvents(ctx interface{}, req interface{}) *Client_RestSearchEvents_Call

RestSearchEvents is a helper method to define mock.On call

  • ctx context.Context
  • req client.RestSearchEventsRequest

type Client_RestSearchEvents_Call

type Client_RestSearchEvents_Call struct {
	*mock.Call
}

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

func (*Client_RestSearchEvents_Call) Return

func (*Client_RestSearchEvents_Call) Run

Jump to

Keyboard shortcuts

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