mocks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 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 testing.TB) *Client

NewClient creates a new instance of Client. It also registers a cleanup function to assert the mocks expectations.

func (*Client) ActivateSubscriptions

func (_m *Client) ActivateSubscriptions() (int, error)

ActivateSubscriptions provides a mock function with given fields:

func (*Client) AddComment added in v1.2.0

func (_m *Client) AddComment(recordType string, recordID string, payload *serializer.ServiceNowCommentPayload) (int, error)

AddComment provides a mock function with given fields: recordType, recordID, payload

func (*Client) CheckForDuplicateSubscription

func (_m *Client) CheckForDuplicateSubscription(_a0 *serializer.SubscriptionPayload) (bool, int, error)

CheckForDuplicateSubscription provides a mock function with given fields: _a0

func (*Client) CreateSubscription

func (_m *Client) CreateSubscription(_a0 *serializer.SubscriptionPayload) (int, error)

CreateSubscription provides a mock function with given fields: _a0

func (*Client) DeleteSubscription

func (_m *Client) DeleteSubscription(subscriptionID string) (int, error)

DeleteSubscription provides a mock function with given fields: subscriptionID

func (*Client) EditSubscription

func (_m *Client) EditSubscription(subscriptionID string, subscription *serializer.SubscriptionPayload) (int, error)

EditSubscription provides a mock function with given fields: subscriptionID, subscription

func (*Client) GetAllComments added in v1.2.0

func (_m *Client) GetAllComments(recordType string, recordID string) (string, int, error)

GetAllComments provides a mock function with given fields: recordType, recordID

func (*Client) GetAllSubscriptions

func (_m *Client) GetAllSubscriptions(channelID string, userID string, subscriptionType string, limit string, offset string) ([]*serializer.SubscriptionResponse, int, error)

GetAllSubscriptions provides a mock function with given fields: channelID, userID, subscriptionType, limit, offset

func (*Client) GetRecordFromServiceNow

func (_m *Client) GetRecordFromServiceNow(tableName string, sysID string) (*serializer.ServiceNowRecord, int, error)

GetRecordFromServiceNow provides a mock function with given fields: tableName, sysID

func (*Client) GetSubscription

func (_m *Client) GetSubscription(subscriptionID string) (*serializer.SubscriptionResponse, int, error)

GetSubscription provides a mock function with given fields: subscriptionID

func (*Client) SearchRecordsInServiceNow

func (_m *Client) SearchRecordsInServiceNow(tableName string, searchTerm string, limit string, offset string) ([]*serializer.ServiceNowPartialRecord, int, error)

SearchRecordsInServiceNow provides a mock function with given fields: tableName, searchTerm, limit, offset

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t testing.TB) *Store

NewStore creates a new instance of Store. It also registers a cleanup function to assert the mocks expectations.

func (*Store) DeleteUser

func (_m *Store) DeleteUser(mattermostUserID string) error

DeleteUser provides a mock function with given fields: mattermostUserID

func (*Store) LoadUser

func (_m *Store) LoadUser(mattermostUserID string) (*serializer.User, error)

LoadUser provides a mock function with given fields: mattermostUserID

func (*Store) StoreOAuth2State

func (_m *Store) StoreOAuth2State(state string) error

StoreOAuth2State provides a mock function with given fields: state

func (*Store) StoreUser

func (_m *Store) StoreUser(user *serializer.User) error

StoreUser provides a mock function with given fields: user

func (*Store) VerifyOAuth2State

func (_m *Store) VerifyOAuth2State(state string) error

VerifyOAuth2State provides a mock function with given fields: state

Jump to

Keyboard shortcuts

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