mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 4 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) CreateUser

func (_m *Client) CreateUser(ctx context.Context, realm string, user *libregraph.User, userActions []keycloak.UserAction) (string, error)

CreateUser provides a mock function with given fields: ctx, realm, user, userActions

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetPIIReport

func (_m *Client) GetPIIReport(ctx context.Context, realm string, username string) (*keycloak.PIIReport, error)

GetPIIReport provides a mock function with given fields: ctx, realm, username

func (*Client) GetUserByUsername

func (_m *Client) GetUserByUsername(ctx context.Context, realm string, username string) (*libregraph.User, error)

GetUserByUsername provides a mock function with given fields: ctx, realm, username

func (*Client) SendActionsMail

func (_m *Client) SendActionsMail(ctx context.Context, realm string, userID string, userActions []keycloak.UserAction) error

SendActionsMail provides a mock function with given fields: ctx, realm, userID, userActions

type Client_CreateUser_Call

type Client_CreateUser_Call struct {
	*mock.Call
}

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

func (*Client_CreateUser_Call) Return

func (*Client_CreateUser_Call) Run

func (_c *Client_CreateUser_Call) Run(run func(ctx context.Context, realm string, user *libregraph.User, userActions []keycloak.UserAction)) *Client_CreateUser_Call

func (*Client_CreateUser_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) CreateUser

func (_e *Client_Expecter) CreateUser(ctx interface{}, realm interface{}, user interface{}, userActions interface{}) *Client_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • realm string
  • user *libregraph.User
  • userActions []keycloak.UserAction

func (*Client_Expecter) GetPIIReport

func (_e *Client_Expecter) GetPIIReport(ctx interface{}, realm interface{}, username interface{}) *Client_GetPIIReport_Call

GetPIIReport is a helper method to define mock.On call

  • ctx context.Context
  • realm string
  • username string

func (*Client_Expecter) GetUserByUsername

func (_e *Client_Expecter) GetUserByUsername(ctx interface{}, realm interface{}, username interface{}) *Client_GetUserByUsername_Call

GetUserByUsername is a helper method to define mock.On call

  • ctx context.Context
  • realm string
  • username string

func (*Client_Expecter) SendActionsMail

func (_e *Client_Expecter) SendActionsMail(ctx interface{}, realm interface{}, userID interface{}, userActions interface{}) *Client_SendActionsMail_Call

SendActionsMail is a helper method to define mock.On call

  • ctx context.Context
  • realm string
  • userID string
  • userActions []keycloak.UserAction

type Client_GetPIIReport_Call

type Client_GetPIIReport_Call struct {
	*mock.Call
}

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

func (*Client_GetPIIReport_Call) Return

func (*Client_GetPIIReport_Call) Run

func (_c *Client_GetPIIReport_Call) Run(run func(ctx context.Context, realm string, username string)) *Client_GetPIIReport_Call

func (*Client_GetPIIReport_Call) RunAndReturn

type Client_GetUserByUsername_Call

type Client_GetUserByUsername_Call struct {
	*mock.Call
}

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

func (*Client_GetUserByUsername_Call) Return

func (*Client_GetUserByUsername_Call) Run

func (*Client_GetUserByUsername_Call) RunAndReturn

type Client_SendActionsMail_Call

type Client_SendActionsMail_Call struct {
	*mock.Call
}

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

func (*Client_SendActionsMail_Call) Return

func (*Client_SendActionsMail_Call) Run

func (_c *Client_SendActionsMail_Call) Run(run func(ctx context.Context, realm string, userID string, userActions []keycloak.UserAction)) *Client_SendActionsMail_Call

func (*Client_SendActionsMail_Call) RunAndReturn

Jump to

Keyboard shortcuts

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