mocks

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause 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 mockConstructorTestingTNewClient) *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.

func (*Client) Session

func (_m *Client) Session(actor string, emulator string, isAdmin bool) (useractions.Session, error)

Session provides a mock function with given fields: actor, emulator, isAdmin

type Session

type Session struct {
	mock.Mock
}

Session is an autogenerated mock type for the Session type

func NewSession

func NewSession(t mockConstructorTestingTNewSession) *Session

NewSession creates a new instance of Session. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Session) CreateUserAction

func (_m *Session) CreateUserAction(creationRequest http.UserAction) (common.ID, error)

CreateUserAction provides a mock function with given fields: creationRequest

func (*Session) DeleteUserAction

func (_m *Session) DeleteUserAction(userActionID common.ID) (common.ID, error)

DeleteUserAction provides a mock function with given fields: userActionID

func (*Session) GetUserAction

func (_m *Session) GetUserAction(userActionID common.ID) (http.UserAction, error)

GetUserAction provides a mock function with given fields: userActionID

func (*Session) ListUserActions

func (_m *Session) ListUserActions() ([]http.UserAction, error)

ListUserActions provides a mock function with given fields:

func (*Session) UpdateUserAction

func (_m *Session) UpdateUserAction(userActionID common.ID, updateRequest http.UserAction) (common.ID, error)

UpdateUserAction provides a mock function with given fields: userActionID, updateRequest

func (*Session) UpdateUserActionFields

func (_m *Session) UpdateUserActionFields(userActionID common.ID, updateRequest http.UserAction, updateFields []string) (common.ID, error)

UpdateUserActionFields provides a mock function with given fields: userActionID, updateRequest, updateFields

func (*Session) ValidateUserActionCreationRequest

func (_m *Session) ValidateUserActionCreationRequest(creationRequest http.UserAction) error

ValidateUserActionCreationRequest provides a mock function with given fields: creationRequest

func (*Session) ValidateUserActionDeletionRequest

func (_m *Session) ValidateUserActionDeletionRequest(userActionID common.ID) error

ValidateUserActionDeletionRequest provides a mock function with given fields: userActionID

func (*Session) ValidateUserActionUpdateFieldsRequest

func (_m *Session) ValidateUserActionUpdateFieldsRequest(userActionID common.ID, updateRequest http.UserAction, updateFields []string) error

ValidateUserActionUpdateFieldsRequest provides a mock function with given fields: userActionID, updateRequest, updateFields

func (*Session) ValidateUserActionUpdateRequest

func (_m *Session) ValidateUserActionUpdateRequest(userActionID common.ID, updateRequest http.UserAction) error

ValidateUserActionUpdateRequest provides a mock function with given fields: userActionID, updateRequest

Jump to

Keyboard shortcuts

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