microsoft_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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureClient

type AzureClient struct {
	mock.Mock
}

AzureClient is an autogenerated mock type for the AzureClient type

func NewAzureClient

func NewAzureClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *AzureClient

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

func (_m *AzureClient) EXPECT() *AzureClient_Expecter

func (*AzureClient) QueryObjects

func (_m *AzureClient) QueryObjects(ctx context.Context, endpoint string, queryParams url.Values, size int) (plugindata.List, error)

QueryObjects provides a mock function with given fields: ctx, endpoint, queryParams, size

type AzureClient_Expecter

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

func (*AzureClient_Expecter) QueryObjects

func (_e *AzureClient_Expecter) QueryObjects(ctx interface{}, endpoint interface{}, queryParams interface{}, size interface{}) *AzureClient_QueryObjects_Call

QueryObjects is a helper method to define mock.On call

  • ctx context.Context
  • endpoint string
  • queryParams url.Values
  • size int

type AzureClient_QueryObjects_Call

type AzureClient_QueryObjects_Call struct {
	*mock.Call
}

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

func (*AzureClient_QueryObjects_Call) Return

func (*AzureClient_QueryObjects_Call) Run

func (_c *AzureClient_QueryObjects_Call) Run(run func(ctx context.Context, endpoint string, queryParams url.Values, size int)) *AzureClient_QueryObjects_Call

func (*AzureClient_QueryObjects_Call) RunAndReturn

type AzureOpenAIClient

type AzureOpenAIClient struct {
	mock.Mock
}

AzureOpenAIClient is an autogenerated mock type for the AzureOpenAIClient type

func NewAzureOpenAIClient

func NewAzureOpenAIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *AzureOpenAIClient

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

func (*AzureOpenAIClient) GetCompletions

GetCompletions provides a mock function with given fields: ctx, body, options

type AzureOpenAIClient_Expecter

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

func (*AzureOpenAIClient_Expecter) GetCompletions

func (_e *AzureOpenAIClient_Expecter) GetCompletions(ctx interface{}, body interface{}, options interface{}) *AzureOpenAIClient_GetCompletions_Call

GetCompletions is a helper method to define mock.On call

  • ctx context.Context
  • body azopenai.CompletionsOptions
  • options *azopenai.GetCompletionsOptions

type AzureOpenAIClient_GetCompletions_Call

type AzureOpenAIClient_GetCompletions_Call struct {
	*mock.Call
}

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

func (*AzureOpenAIClient_GetCompletions_Call) Return

func (*AzureOpenAIClient_GetCompletions_Call) Run

type MicrosoftGraphClient

type MicrosoftGraphClient struct {
	mock.Mock
}

MicrosoftGraphClient is an autogenerated mock type for the MicrosoftGraphClient type

func NewMicrosoftGraphClient

func NewMicrosoftGraphClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MicrosoftGraphClient

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

func (*MicrosoftGraphClient) QueryObject

func (_m *MicrosoftGraphClient) QueryObject(ctx context.Context, endpoint string, queryParams url.Values) (plugindata.Data, error)

QueryObject provides a mock function with given fields: ctx, endpoint, queryParams

func (*MicrosoftGraphClient) QueryObjects

func (_m *MicrosoftGraphClient) QueryObjects(ctx context.Context, endpoint string, queryParams url.Values, size int) (plugindata.List, error)

QueryObjects provides a mock function with given fields: ctx, endpoint, queryParams, size

type MicrosoftGraphClient_Expecter

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

func (*MicrosoftGraphClient_Expecter) QueryObject

func (_e *MicrosoftGraphClient_Expecter) QueryObject(ctx interface{}, endpoint interface{}, queryParams interface{}) *MicrosoftGraphClient_QueryObject_Call

QueryObject is a helper method to define mock.On call

  • ctx context.Context
  • endpoint string
  • queryParams url.Values

func (*MicrosoftGraphClient_Expecter) QueryObjects

func (_e *MicrosoftGraphClient_Expecter) QueryObjects(ctx interface{}, endpoint interface{}, queryParams interface{}, size interface{}) *MicrosoftGraphClient_QueryObjects_Call

QueryObjects is a helper method to define mock.On call

  • ctx context.Context
  • endpoint string
  • queryParams url.Values
  • size int

type MicrosoftGraphClient_QueryObject_Call

type MicrosoftGraphClient_QueryObject_Call struct {
	*mock.Call
}

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

func (*MicrosoftGraphClient_QueryObject_Call) Return

func (*MicrosoftGraphClient_QueryObject_Call) Run

func (*MicrosoftGraphClient_QueryObject_Call) RunAndReturn

type MicrosoftGraphClient_QueryObjects_Call

type MicrosoftGraphClient_QueryObjects_Call struct {
	*mock.Call
}

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

func (*MicrosoftGraphClient_QueryObjects_Call) Return

func (*MicrosoftGraphClient_QueryObjects_Call) Run

func (*MicrosoftGraphClient_QueryObjects_Call) RunAndReturn

type MicrosoftSecurityClient

type MicrosoftSecurityClient struct {
	mock.Mock
}

MicrosoftSecurityClient is an autogenerated mock type for the MicrosoftSecurityClient type

func NewMicrosoftSecurityClient

func NewMicrosoftSecurityClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MicrosoftSecurityClient

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

func (*MicrosoftSecurityClient) QueryObject

func (_m *MicrosoftSecurityClient) QueryObject(ctx context.Context, endpoint string, queryParams url.Values) (plugindata.Data, error)

QueryObject provides a mock function with given fields: ctx, endpoint, queryParams

func (*MicrosoftSecurityClient) QueryObjects

func (_m *MicrosoftSecurityClient) QueryObjects(ctx context.Context, endpoint string, queryParams url.Values, size int) (plugindata.List, error)

QueryObjects provides a mock function with given fields: ctx, endpoint, queryParams, size

func (*MicrosoftSecurityClient) RunAdvancedQuery

func (_m *MicrosoftSecurityClient) RunAdvancedQuery(ctx context.Context, query string) (plugindata.Data, error)

RunAdvancedQuery provides a mock function with given fields: ctx, query

type MicrosoftSecurityClient_Expecter

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

func (*MicrosoftSecurityClient_Expecter) QueryObject

func (_e *MicrosoftSecurityClient_Expecter) QueryObject(ctx interface{}, endpoint interface{}, queryParams interface{}) *MicrosoftSecurityClient_QueryObject_Call

QueryObject is a helper method to define mock.On call

  • ctx context.Context
  • endpoint string
  • queryParams url.Values

func (*MicrosoftSecurityClient_Expecter) QueryObjects

func (_e *MicrosoftSecurityClient_Expecter) QueryObjects(ctx interface{}, endpoint interface{}, queryParams interface{}, size interface{}) *MicrosoftSecurityClient_QueryObjects_Call

QueryObjects is a helper method to define mock.On call

  • ctx context.Context
  • endpoint string
  • queryParams url.Values
  • size int

func (*MicrosoftSecurityClient_Expecter) RunAdvancedQuery

func (_e *MicrosoftSecurityClient_Expecter) RunAdvancedQuery(ctx interface{}, query interface{}) *MicrosoftSecurityClient_RunAdvancedQuery_Call

RunAdvancedQuery is a helper method to define mock.On call

  • ctx context.Context
  • query string

type MicrosoftSecurityClient_QueryObject_Call

type MicrosoftSecurityClient_QueryObject_Call struct {
	*mock.Call
}

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

func (*MicrosoftSecurityClient_QueryObject_Call) Return

func (*MicrosoftSecurityClient_QueryObject_Call) Run

func (*MicrosoftSecurityClient_QueryObject_Call) RunAndReturn

type MicrosoftSecurityClient_QueryObjects_Call

type MicrosoftSecurityClient_QueryObjects_Call struct {
	*mock.Call
}

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

func (*MicrosoftSecurityClient_QueryObjects_Call) Return

func (*MicrosoftSecurityClient_QueryObjects_Call) Run

func (*MicrosoftSecurityClient_QueryObjects_Call) RunAndReturn

type MicrosoftSecurityClient_RunAdvancedQuery_Call

type MicrosoftSecurityClient_RunAdvancedQuery_Call struct {
	*mock.Call
}

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

func (*MicrosoftSecurityClient_RunAdvancedQuery_Call) Return

func (*MicrosoftSecurityClient_RunAdvancedQuery_Call) Run

func (*MicrosoftSecurityClient_RunAdvancedQuery_Call) RunAndReturn

Jump to

Keyboard shortcuts

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