mocks

package
v0.0.0-...-f96b470 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyRepository

type APIKeyRepository struct {
	mock.Mock
}

APIKeyRepository is an autogenerated mock type for the APIKeyRepository type

func NewAPIKeyRepository

func NewAPIKeyRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIKeyRepository

NewAPIKeyRepository creates a new instance of APIKeyRepository. 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 (*APIKeyRepository) Validate

func (_m *APIKeyRepository) Validate(ctx context.Context, key string) (uuid.UUID, error)

Validate provides a mock function with given fields: ctx, key

type Context

type Context struct {
	mock.Mock
}

Context is an autogenerated mock type for the Context type

func NewContext

func NewContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *Context

NewContext creates a new instance of Context. 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 (*Context) Attachment

func (_m *Context) Attachment(file string, name string) error

Attachment provides a mock function with given fields: file, name

func (*Context) Bind

func (_m *Context) Bind(i interface{}) error

Bind provides a mock function with given fields: i

func (*Context) Blob

func (_m *Context) Blob(code int, contentType string, b []byte) error

Blob provides a mock function with given fields: code, contentType, b

func (*Context) Cookie

func (_m *Context) Cookie(name string) (*http.Cookie, error)

Cookie provides a mock function with given fields: name

func (*Context) Cookies

func (_m *Context) Cookies() []*http.Cookie

Cookies provides a mock function with given fields:

func (*Context) Echo

func (_m *Context) Echo() *echo.Echo

Echo provides a mock function with given fields:

func (*Context) Error

func (_m *Context) Error(err error)

Error provides a mock function with given fields: err

func (*Context) File

func (_m *Context) File(file string) error

File provides a mock function with given fields: file

func (*Context) FormFile

func (_m *Context) FormFile(name string) (*multipart.FileHeader, error)

FormFile provides a mock function with given fields: name

func (*Context) FormParams

func (_m *Context) FormParams() (url.Values, error)

FormParams provides a mock function with given fields:

func (*Context) FormValue

func (_m *Context) FormValue(name string) string

FormValue provides a mock function with given fields: name

func (*Context) Get

func (_m *Context) Get(key string) interface{}

Get provides a mock function with given fields: key

func (*Context) HTML

func (_m *Context) HTML(code int, html string) error

HTML provides a mock function with given fields: code, html

func (*Context) HTMLBlob

func (_m *Context) HTMLBlob(code int, b []byte) error

HTMLBlob provides a mock function with given fields: code, b

func (*Context) Handler

func (_m *Context) Handler() echo.HandlerFunc

Handler provides a mock function with given fields:

func (*Context) Inline

func (_m *Context) Inline(file string, name string) error

Inline provides a mock function with given fields: file, name

func (*Context) IsTLS

func (_m *Context) IsTLS() bool

IsTLS provides a mock function with given fields:

func (*Context) IsWebSocket

func (_m *Context) IsWebSocket() bool

IsWebSocket provides a mock function with given fields:

func (*Context) JSON

func (_m *Context) JSON(code int, i interface{}) error

JSON provides a mock function with given fields: code, i

func (*Context) JSONBlob

func (_m *Context) JSONBlob(code int, b []byte) error

JSONBlob provides a mock function with given fields: code, b

func (*Context) JSONP

func (_m *Context) JSONP(code int, callback string, i interface{}) error

JSONP provides a mock function with given fields: code, callback, i

func (*Context) JSONPBlob

func (_m *Context) JSONPBlob(code int, callback string, b []byte) error

JSONPBlob provides a mock function with given fields: code, callback, b

func (*Context) JSONPretty

func (_m *Context) JSONPretty(code int, i interface{}, indent string) error

JSONPretty provides a mock function with given fields: code, i, indent

func (*Context) Logger

func (_m *Context) Logger() echo.Logger

Logger provides a mock function with given fields:

func (*Context) MultipartForm

func (_m *Context) MultipartForm() (*multipart.Form, error)

MultipartForm provides a mock function with given fields:

func (*Context) NoContent

func (_m *Context) NoContent(code int) error

NoContent provides a mock function with given fields: code

func (*Context) Param

func (_m *Context) Param(name string) string

Param provides a mock function with given fields: name

func (*Context) ParamNames

func (_m *Context) ParamNames() []string

ParamNames provides a mock function with given fields:

func (*Context) ParamValues

func (_m *Context) ParamValues() []string

ParamValues provides a mock function with given fields:

func (*Context) Path

func (_m *Context) Path() string

Path provides a mock function with given fields:

func (*Context) QueryParam

func (_m *Context) QueryParam(name string) string

QueryParam provides a mock function with given fields: name

func (*Context) QueryParams

func (_m *Context) QueryParams() url.Values

QueryParams provides a mock function with given fields:

func (*Context) QueryString

func (_m *Context) QueryString() string

QueryString provides a mock function with given fields:

func (*Context) RealIP

func (_m *Context) RealIP() string

RealIP provides a mock function with given fields:

func (*Context) Redirect

func (_m *Context) Redirect(code int, _a1 string) error

Redirect provides a mock function with given fields: code, _a1

func (*Context) Render

func (_m *Context) Render(code int, name string, data interface{}) error

Render provides a mock function with given fields: code, name, data

func (*Context) Request

func (_m *Context) Request() *http.Request

Request provides a mock function with given fields:

func (*Context) Reset

func (_m *Context) Reset(r *http.Request, w http.ResponseWriter)

Reset provides a mock function with given fields: r, w

func (*Context) Response

func (_m *Context) Response() *echo.Response

Response provides a mock function with given fields:

func (*Context) Scheme

func (_m *Context) Scheme() string

Scheme provides a mock function with given fields:

func (*Context) Set

func (_m *Context) Set(key string, val interface{})

Set provides a mock function with given fields: key, val

func (*Context) SetCookie

func (_m *Context) SetCookie(cookie *http.Cookie)

SetCookie provides a mock function with given fields: cookie

func (*Context) SetHandler

func (_m *Context) SetHandler(h echo.HandlerFunc)

SetHandler provides a mock function with given fields: h

func (*Context) SetLogger

func (_m *Context) SetLogger(l echo.Logger)

SetLogger provides a mock function with given fields: l

func (*Context) SetParamNames

func (_m *Context) SetParamNames(names ...string)

SetParamNames provides a mock function with given fields: names

func (*Context) SetParamValues

func (_m *Context) SetParamValues(values ...string)

SetParamValues provides a mock function with given fields: values

func (*Context) SetPath

func (_m *Context) SetPath(p string)

SetPath provides a mock function with given fields: p

func (*Context) SetRequest

func (_m *Context) SetRequest(r *http.Request)

SetRequest provides a mock function with given fields: r

func (*Context) SetResponse

func (_m *Context) SetResponse(r *echo.Response)

SetResponse provides a mock function with given fields: r

func (*Context) Stream

func (_m *Context) Stream(code int, contentType string, r io.Reader) error

Stream provides a mock function with given fields: code, contentType, r

func (*Context) String

func (_m *Context) String(code int, s string) error

String provides a mock function with given fields: code, s

func (*Context) Validate

func (_m *Context) Validate(i interface{}) error

Validate provides a mock function with given fields: i

func (*Context) XML

func (_m *Context) XML(code int, i interface{}) error

XML provides a mock function with given fields: code, i

func (*Context) XMLBlob

func (_m *Context) XMLBlob(code int, b []byte) error

XMLBlob provides a mock function with given fields: code, b

func (*Context) XMLPretty

func (_m *Context) XMLPretty(code int, i interface{}, indent string) error

XMLPretty provides a mock function with given fields: code, i, indent

type Runnable

type Runnable struct {
	mock.Mock
}

Runnable is an autogenerated mock type for the Runnable type

func NewRunnable

func NewRunnable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Runnable

NewRunnable creates a new instance of Runnable. 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 (*Runnable) Name

func (_m *Runnable) Name() string

Name provides a mock function with given fields:

func (*Runnable) Shutdown

func (_m *Runnable) Shutdown(ctx context.Context) error

Shutdown provides a mock function with given fields: ctx

func (*Runnable) Start

func (_m *Runnable) Start() error

Start provides a mock function with given fields:

type ServerInterface

type ServerInterface struct {
	mock.Mock
}

ServerInterface is an autogenerated mock type for the ServerInterface type

func NewServerInterface

func NewServerInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServerInterface

NewServerInterface creates a new instance of ServerInterface. 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 (*ServerInterface) CreateProject

func (_m *ServerInterface) CreateProject(ctx echo.Context) error

CreateProject provides a mock function with given fields: ctx

func (*ServerInterface) CreateScenario

func (_m *ServerInterface) CreateScenario(ctx echo.Context, projectId uuid.UUID) error

CreateScenario provides a mock function with given fields: ctx, projectId

func (*ServerInterface) ListProjects

func (_m *ServerInterface) ListProjects(ctx echo.Context, params api.ListProjectsParams) error

ListProjects provides a mock function with given fields: ctx, params

func (*ServerInterface) ListRunsForProject

func (_m *ServerInterface) ListRunsForProject(ctx echo.Context, id uuid.UUID, params api.ListRunsForProjectParams) error

ListRunsForProject provides a mock function with given fields: ctx, id, params

func (*ServerInterface) ListScenariosForProject

func (_m *ServerInterface) ListScenariosForProject(ctx echo.Context, projectId uuid.UUID, params api.ListScenariosForProjectParams) error

ListScenariosForProject provides a mock function with given fields: ctx, projectId, params

func (*ServerInterface) RunProject

func (_m *ServerInterface) RunProject(ctx echo.Context) error

RunProject provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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