test

package
v0.0.0-...-b4e7bf2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerMock

type ControllerMock struct {
	mock.Mock
}

ControllerMock is an autogenerated mock type for the ControllerInterface type

func NewControllerMock

func NewControllerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ControllerMock

NewControllerMock creates a new instance of ControllerMock. 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 (*ControllerMock) DeleteProject

DeleteProject provides a mock function with given fields: params

func (*ControllerMock) DeleteProjectRateLimited

func (_m *ControllerMock) DeleteProjectRateLimited(params projects.DeleteProjectParams) middleware.Responder

DeleteProjectRateLimited provides a mock function with given fields: params

func (*ControllerMock) GetError

GetError provides a mock function with given fields: params

func (*ControllerMock) GetErrorRateLimited

func (_m *ControllerMock) GetErrorRateLimited(params errors.GetErrorParams) middleware.Responder

GetErrorRateLimited provides a mock function with given fields: params

func (*ControllerMock) GetStatsV2

GetStatsV2 provides a mock function with given fields: _a0

func (*ControllerMock) ListErrors

ListErrors provides a mock function with given fields: params

func (*ControllerMock) ListErrorsRateLimited

func (_m *ControllerMock) ListErrorsRateLimited(params errors.ListErrorsParams) middleware.Responder

ListErrorsRateLimited provides a mock function with given fields: params

func (*ControllerMock) ListEvents

ListEvents provides a mock function with given fields: params

func (*ControllerMock) ListEventsRateLimited

func (_m *ControllerMock) ListEventsRateLimited(params errors.ListEventsParams) middleware.Responder

ListEventsRateLimited provides a mock function with given fields: params

func (*ControllerMock) ListMessages

ListMessages provides a mock function with given fields: params

func (*ControllerMock) ListMessagesRateLimited

func (_m *ControllerMock) ListMessagesRateLimited(params messages.ListMessagesParams) middleware.Responder

ListMessagesRateLimited provides a mock function with given fields: params

func (*ControllerMock) ListProjects

ListProjects provides a mock function with given fields: params

func (*ControllerMock) PostEnvelopeHandler

PostEnvelopeHandler provides a mock function with given fields: params

func (*ControllerMock) PostEnvelopeHandlerRateLimited

func (_m *ControllerMock) PostEnvelopeHandlerRateLimited(params events.PostProjectsAPIProjectIDEnvelopeParams) middleware.Responder

PostEnvelopeHandlerRateLimited provides a mock function with given fields: params

func (*ControllerMock) PostStoreHandler

PostStoreHandler provides a mock function with given fields: params

func (*ControllerMock) PostStoreHandlerRateLimited

func (_m *ControllerMock) PostStoreHandlerRateLimited(params events.PostProjectsAPIProjectIDStoreParams) middleware.Responder

PostStoreHandlerRateLimited provides a mock function with given fields: params

func (*ControllerMock) UpdateError

UpdateError provides a mock function with given fields: params

func (*ControllerMock) UpdateErrorRateLimited

func (_m *ControllerMock) UpdateErrorRateLimited(params errors.UpdateErrorParams) middleware.Responder

UpdateErrorRateLimited provides a mock function with given fields: params

type RateLimiterMock

type RateLimiterMock struct {
	mock.Mock
}

RateLimiterMock is an autogenerated mock type for the RateLimiter type

func NewRateLimiterMock

func NewRateLimiterMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RateLimiterMock

NewRateLimiterMock creates a new instance of RateLimiterMock. 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 (*RateLimiterMock) IsAllowed

func (_m *RateLimiterMock) IsAllowed(_a0 context.Context, _a1 int, _a2 string, _a3 string) (*redis_rate.Result, error)

IsAllowed provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*RateLimiterMock) SetLimits

func (_m *RateLimiterMock) SetLimits(_a0 *ratelimiting.LimitsConfig)

SetLimits provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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