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: 5 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) Session

func (_m *Client) Session(actor string, emulator string, isAdmin bool) (templates.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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Session) CreateTemplateCustomFieldType

func (_m *Session) CreateTemplateCustomFieldType(creationRequest http.TemplateCustomFieldType) (string, error)

CreateTemplateCustomFieldType provides a mock function with given fields: creationRequest

func (*Session) CreateTemplateType

func (_m *Session) CreateTemplateType(creationRequest http.TemplateType) (service.TemplateTypeName, error)

CreateTemplateType provides a mock function with given fields: creationRequest

func (*Session) CreateTemplateWebhook

func (_m *Session) CreateTemplateWebhook(request service.TemplateWebhook) (templates.TemplateWebhook, error)

CreateTemplateWebhook provides a mock function with given fields: request

func (*Session) DeleteTemplate

func (_m *Session) DeleteTemplate(templateID common.ID) (common.ID, error)

DeleteTemplate provides a mock function with given fields: templateID

func (*Session) DeleteTemplateCustomFieldType

func (_m *Session) DeleteTemplateCustomFieldType(templateCustomFieldTypeName string) (string, error)

DeleteTemplateCustomFieldType provides a mock function with given fields: templateCustomFieldTypeName

func (*Session) DeleteTemplateType

func (_m *Session) DeleteTemplateType(templateTypeName service.TemplateTypeName) (service.TemplateTypeName, error)

DeleteTemplateType provides a mock function with given fields: templateTypeName

func (*Session) DeleteTemplateWebhook

func (_m *Session) DeleteTemplateWebhook(templateID common.ID) error

DeleteTemplateWebhook provides a mock function with given fields: templateID

func (*Session) GetTemplate

func (_m *Session) GetTemplate(templateID common.ID) (http.Template, error)

GetTemplate provides a mock function with given fields: templateID

func (*Session) GetTemplateCustomFieldType

func (_m *Session) GetTemplateCustomFieldType(templateCustomFieldTypeName string) (http.TemplateCustomFieldType, error)

GetTemplateCustomFieldType provides a mock function with given fields: templateCustomFieldTypeName

func (*Session) GetTemplateType

func (_m *Session) GetTemplateType(templateTypeName service.TemplateTypeName) (http.TemplateType, error)

GetTemplateType provides a mock function with given fields: templateTypeName

func (*Session) GetTemplateVersion

func (_m *Session) GetTemplateVersion(templateVersionID common.ID) (http.TemplateVersion, error)

GetTemplateVersion provides a mock function with given fields: templateVersionID

func (*Session) ImportTemplate

func (_m *Session) ImportTemplate(importRequest http.Template, credentialID string) (common.ID, error)

ImportTemplate provides a mock function with given fields: importRequest, credentialID

func (*Session) ListPublicTemplates

func (_m *Session) ListPublicTemplates() ([]templates.PublicTemplate, error)

ListPublicTemplates provides a mock function with given fields:

func (*Session) ListTemplateCustomFieldTypes

func (_m *Session) ListTemplateCustomFieldTypes() ([]http.TemplateCustomFieldType, error)

ListTemplateCustomFieldTypes provides a mock function with given fields:

func (*Session) ListTemplateSourceTypes

func (_m *Session) ListTemplateSourceTypes() ([]service.TemplateSourceType, error)

ListTemplateSourceTypes provides a mock function with given fields:

func (*Session) ListTemplateTypes

func (_m *Session) ListTemplateTypes() ([]http.TemplateType, error)

ListTemplateTypes provides a mock function with given fields:

func (*Session) ListTemplateTypesForProvideType

func (_m *Session) ListTemplateTypesForProvideType(providerType service.TemplateProviderType) ([]http.TemplateType, error)

ListTemplateTypesForProvideType provides a mock function with given fields: providerType

func (*Session) ListTemplateVersions

func (_m *Session) ListTemplateVersions(templateID common.ID) ([]http.TemplateVersion, error)

ListTemplateVersions provides a mock function with given fields: templateID

func (*Session) ListTemplateWebhooks

func (_m *Session) ListTemplateWebhooks() ([]service.TemplateWebhook, error)

ListTemplateWebhooks provides a mock function with given fields:

func (*Session) ListTemplates

func (_m *Session) ListTemplates(includeCacaoReservedPurposes bool) ([]http.Template, error)

ListTemplates provides a mock function with given fields: includeCacaoReservedPurposes

func (*Session) QueryTemplateCustomFieldType

func (_m *Session) QueryTemplateCustomFieldType(templateCustomFieldTypeName string, queryParams map[string]string) (http.TemplateCustomFieldTypeQueryResult, error)

QueryTemplateCustomFieldType provides a mock function with given fields: templateCustomFieldTypeName, queryParams

func (*Session) SyncTemplate

func (_m *Session) SyncTemplate(templateID common.ID, credentialID string) (common.ID, error)

SyncTemplate provides a mock function with given fields: templateID, credentialID

func (*Session) UpdateTemplate

func (_m *Session) UpdateTemplate(templateID common.ID, updateRequest http.Template) (common.ID, error)

UpdateTemplate provides a mock function with given fields: templateID, updateRequest

func (*Session) UpdateTemplateCustomFieldType

func (_m *Session) UpdateTemplateCustomFieldType(templateCustomFieldTypeName string, updateRequest http.TemplateCustomFieldType) (string, error)

UpdateTemplateCustomFieldType provides a mock function with given fields: templateCustomFieldTypeName, updateRequest

func (*Session) UpdateTemplateCustomFieldTypeFields

func (_m *Session) UpdateTemplateCustomFieldTypeFields(templateCustomFieldTypeName string, updateRequest http.TemplateCustomFieldType, updateFields []string) (string, error)

UpdateTemplateCustomFieldTypeFields provides a mock function with given fields: templateCustomFieldTypeName, updateRequest, updateFields

func (*Session) UpdateTemplateFields

func (_m *Session) UpdateTemplateFields(templateID common.ID, updateRequest http.Template, updateFields []string) (common.ID, error)

UpdateTemplateFields provides a mock function with given fields: templateID, updateRequest, updateFields

func (*Session) UpdateTemplateType

func (_m *Session) UpdateTemplateType(templateTypeName service.TemplateTypeName, updateRequest http.TemplateType) (service.TemplateTypeName, error)

UpdateTemplateType provides a mock function with given fields: templateTypeName, updateRequest

func (*Session) UpdateTemplateTypeFields

func (_m *Session) UpdateTemplateTypeFields(templateTypeName service.TemplateTypeName, updateRequest http.TemplateType, updateFields []string) (service.TemplateTypeName, error)

UpdateTemplateTypeFields provides a mock function with given fields: templateTypeName, updateRequest, updateFields

func (*Session) ValidateTemplateCustomFieldTypeCreationRequest

func (_m *Session) ValidateTemplateCustomFieldTypeCreationRequest(creationRequest http.TemplateCustomFieldType) error

ValidateTemplateCustomFieldTypeCreationRequest provides a mock function with given fields: creationRequest

func (*Session) ValidateTemplateCustomFieldTypeDeletionRequest

func (_m *Session) ValidateTemplateCustomFieldTypeDeletionRequest(templateCustomFieldTypeName string) error

ValidateTemplateCustomFieldTypeDeletionRequest provides a mock function with given fields: templateCustomFieldTypeName

func (*Session) ValidateTemplateCustomFieldTypeUpdateFieldsRequest

func (_m *Session) ValidateTemplateCustomFieldTypeUpdateFieldsRequest(templateCustomFieldTypeName string, updateRequest http.TemplateCustomFieldType, updateFields []string) error

ValidateTemplateCustomFieldTypeUpdateFieldsRequest provides a mock function with given fields: templateCustomFieldTypeName, updateRequest, updateFields

func (*Session) ValidateTemplateCustomFieldTypeUpdateRequest

func (_m *Session) ValidateTemplateCustomFieldTypeUpdateRequest(templateCustomFieldTypeName string, updateRequest http.TemplateCustomFieldType) error

ValidateTemplateCustomFieldTypeUpdateRequest provides a mock function with given fields: templateCustomFieldTypeName, updateRequest

func (*Session) ValidateTemplateDeletionRequest

func (_m *Session) ValidateTemplateDeletionRequest(templateID common.ID) error

ValidateTemplateDeletionRequest provides a mock function with given fields: templateID

func (*Session) ValidateTemplateImportRequest

func (_m *Session) ValidateTemplateImportRequest(importRequest http.Template, credentialID string) error

ValidateTemplateImportRequest provides a mock function with given fields: importRequest, credentialID

func (*Session) ValidateTemplateSyncRequest

func (_m *Session) ValidateTemplateSyncRequest(templateID common.ID, credentialID string) error

ValidateTemplateSyncRequest provides a mock function with given fields: templateID, credentialID

func (*Session) ValidateTemplateTypeCreationRequest

func (_m *Session) ValidateTemplateTypeCreationRequest(creationRequest http.TemplateType) error

ValidateTemplateTypeCreationRequest provides a mock function with given fields: creationRequest

func (*Session) ValidateTemplateTypeDeletionRequest

func (_m *Session) ValidateTemplateTypeDeletionRequest(templateTypeName service.TemplateTypeName) error

ValidateTemplateTypeDeletionRequest provides a mock function with given fields: templateTypeName

func (*Session) ValidateTemplateTypeUpdateFieldsRequest

func (_m *Session) ValidateTemplateTypeUpdateFieldsRequest(templateTypeName service.TemplateTypeName, updateRequest http.TemplateType, updateFields []string) error

ValidateTemplateTypeUpdateFieldsRequest provides a mock function with given fields: templateTypeName, updateRequest, updateFields

func (*Session) ValidateTemplateTypeUpdateRequest

func (_m *Session) ValidateTemplateTypeUpdateRequest(templateTypeName service.TemplateTypeName, updateRequest http.TemplateType) error

ValidateTemplateTypeUpdateRequest provides a mock function with given fields: templateTypeName, updateRequest

func (*Session) ValidateTemplateUpdateFieldsRequest

func (_m *Session) ValidateTemplateUpdateFieldsRequest(templateID common.ID, updateRequest http.Template, updateFields []string) error

ValidateTemplateUpdateFieldsRequest provides a mock function with given fields: templateID, updateRequest, updateFields

func (*Session) ValidateTemplateUpdateRequest

func (_m *Session) ValidateTemplateUpdateRequest(templateID common.ID, updateRequest http.Template) error

ValidateTemplateUpdateRequest provides a mock function with given fields: templateID, updateRequest

Jump to

Keyboard shortcuts

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