mock_echo

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/labstack/echo/v4 (interfaces: Context)

Generated by this command:

mockgen -destination=internal/generated/mocks/labstack/echo/v4/context.go -package=mock_echo github.com/labstack/echo/v4 Context

Package mock_echo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContext

type MockContext struct {
	// contains filtered or unexported fields
}

MockContext is a mock of Context interface.

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) Attachment

func (m *MockContext) Attachment(arg0, arg1 string) error

Attachment mocks base method.

func (*MockContext) Bind

func (m *MockContext) Bind(arg0 any) error

Bind mocks base method.

func (*MockContext) Blob

func (m *MockContext) Blob(arg0 int, arg1 string, arg2 []byte) error

Blob mocks base method.

func (*MockContext) Cookie

func (m *MockContext) Cookie(arg0 string) (*http.Cookie, error)

Cookie mocks base method.

func (*MockContext) Cookies

func (m *MockContext) Cookies() []*http.Cookie

Cookies mocks base method.

func (*MockContext) EXPECT

func (m *MockContext) EXPECT() *MockContextMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContext) Echo

func (m *MockContext) Echo() *echo.Echo

Echo mocks base method.

func (*MockContext) Error

func (m *MockContext) Error(arg0 error)

Error mocks base method.

func (*MockContext) File

func (m *MockContext) File(arg0 string) error

File mocks base method.

func (*MockContext) FormFile

func (m *MockContext) FormFile(arg0 string) (*multipart.FileHeader, error)

FormFile mocks base method.

func (*MockContext) FormParams

func (m *MockContext) FormParams() (url.Values, error)

FormParams mocks base method.

func (*MockContext) FormValue

func (m *MockContext) FormValue(arg0 string) string

FormValue mocks base method.

func (*MockContext) Get

func (m *MockContext) Get(arg0 string) any

Get mocks base method.

func (*MockContext) HTML

func (m *MockContext) HTML(arg0 int, arg1 string) error

HTML mocks base method.

func (*MockContext) HTMLBlob

func (m *MockContext) HTMLBlob(arg0 int, arg1 []byte) error

HTMLBlob mocks base method.

func (*MockContext) Handler

func (m *MockContext) Handler() echo.HandlerFunc

Handler mocks base method.

func (*MockContext) Inline

func (m *MockContext) Inline(arg0, arg1 string) error

Inline mocks base method.

func (*MockContext) IsTLS

func (m *MockContext) IsTLS() bool

IsTLS mocks base method.

func (*MockContext) IsWebSocket

func (m *MockContext) IsWebSocket() bool

IsWebSocket mocks base method.

func (*MockContext) JSON

func (m *MockContext) JSON(arg0 int, arg1 any) error

JSON mocks base method.

func (*MockContext) JSONBlob

func (m *MockContext) JSONBlob(arg0 int, arg1 []byte) error

JSONBlob mocks base method.

func (*MockContext) JSONP

func (m *MockContext) JSONP(arg0 int, arg1 string, arg2 any) error

JSONP mocks base method.

func (*MockContext) JSONPBlob

func (m *MockContext) JSONPBlob(arg0 int, arg1 string, arg2 []byte) error

JSONPBlob mocks base method.

func (*MockContext) JSONPretty

func (m *MockContext) JSONPretty(arg0 int, arg1 any, arg2 string) error

JSONPretty mocks base method.

func (*MockContext) Logger

func (m *MockContext) Logger() echo.Logger

Logger mocks base method.

func (*MockContext) MultipartForm

func (m *MockContext) MultipartForm() (*multipart.Form, error)

MultipartForm mocks base method.

func (*MockContext) NoContent

func (m *MockContext) NoContent(arg0 int) error

NoContent mocks base method.

func (*MockContext) Param

func (m *MockContext) Param(arg0 string) string

Param mocks base method.

func (*MockContext) ParamNames

func (m *MockContext) ParamNames() []string

ParamNames mocks base method.

func (*MockContext) ParamValues

func (m *MockContext) ParamValues() []string

ParamValues mocks base method.

func (*MockContext) Path

func (m *MockContext) Path() string

Path mocks base method.

func (*MockContext) QueryParam

func (m *MockContext) QueryParam(arg0 string) string

QueryParam mocks base method.

func (*MockContext) QueryParams

func (m *MockContext) QueryParams() url.Values

QueryParams mocks base method.

func (*MockContext) QueryString

func (m *MockContext) QueryString() string

QueryString mocks base method.

func (*MockContext) RealIP

func (m *MockContext) RealIP() string

RealIP mocks base method.

func (*MockContext) Redirect

func (m *MockContext) Redirect(arg0 int, arg1 string) error

Redirect mocks base method.

func (*MockContext) Render

func (m *MockContext) Render(arg0 int, arg1 string, arg2 any) error

Render mocks base method.

func (*MockContext) Request

func (m *MockContext) Request() *http.Request

Request mocks base method.

func (*MockContext) Reset

func (m *MockContext) Reset(arg0 *http.Request, arg1 http.ResponseWriter)

Reset mocks base method.

func (*MockContext) Response

func (m *MockContext) Response() *echo.Response

Response mocks base method.

func (*MockContext) Scheme

func (m *MockContext) Scheme() string

Scheme mocks base method.

func (*MockContext) Set

func (m *MockContext) Set(arg0 string, arg1 any)

Set mocks base method.

func (*MockContext) SetCookie

func (m *MockContext) SetCookie(arg0 *http.Cookie)

SetCookie mocks base method.

func (*MockContext) SetHandler

func (m *MockContext) SetHandler(arg0 echo.HandlerFunc)

SetHandler mocks base method.

func (*MockContext) SetLogger

func (m *MockContext) SetLogger(arg0 echo.Logger)

SetLogger mocks base method.

func (*MockContext) SetParamNames

func (m *MockContext) SetParamNames(arg0 ...string)

SetParamNames mocks base method.

func (*MockContext) SetParamValues

func (m *MockContext) SetParamValues(arg0 ...string)

SetParamValues mocks base method.

func (*MockContext) SetPath

func (m *MockContext) SetPath(arg0 string)

SetPath mocks base method.

func (*MockContext) SetRequest

func (m *MockContext) SetRequest(arg0 *http.Request)

SetRequest mocks base method.

func (*MockContext) SetResponse

func (m *MockContext) SetResponse(arg0 *echo.Response)

SetResponse mocks base method.

func (*MockContext) Stream

func (m *MockContext) Stream(arg0 int, arg1 string, arg2 io.Reader) error

Stream mocks base method.

func (*MockContext) String

func (m *MockContext) String(arg0 int, arg1 string) error

String mocks base method.

func (*MockContext) Validate

func (m *MockContext) Validate(arg0 any) error

Validate mocks base method.

func (*MockContext) XML

func (m *MockContext) XML(arg0 int, arg1 any) error

XML mocks base method.

func (*MockContext) XMLBlob

func (m *MockContext) XMLBlob(arg0 int, arg1 []byte) error

XMLBlob mocks base method.

func (*MockContext) XMLPretty

func (m *MockContext) XMLPretty(arg0 int, arg1 any, arg2 string) error

XMLPretty mocks base method.

type MockContextMockRecorder

type MockContextMockRecorder struct {
	// contains filtered or unexported fields
}

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) Attachment

func (mr *MockContextMockRecorder) Attachment(arg0, arg1 any) *gomock.Call

Attachment indicates an expected call of Attachment.

func (*MockContextMockRecorder) Bind

func (mr *MockContextMockRecorder) Bind(arg0 any) *gomock.Call

Bind indicates an expected call of Bind.

func (*MockContextMockRecorder) Blob

func (mr *MockContextMockRecorder) Blob(arg0, arg1, arg2 any) *gomock.Call

Blob indicates an expected call of Blob.

func (*MockContextMockRecorder) Cookie

func (mr *MockContextMockRecorder) Cookie(arg0 any) *gomock.Call

Cookie indicates an expected call of Cookie.

func (*MockContextMockRecorder) Cookies

func (mr *MockContextMockRecorder) Cookies() *gomock.Call

Cookies indicates an expected call of Cookies.

func (*MockContextMockRecorder) Echo

func (mr *MockContextMockRecorder) Echo() *gomock.Call

Echo indicates an expected call of Echo.

func (*MockContextMockRecorder) Error

func (mr *MockContextMockRecorder) Error(arg0 any) *gomock.Call

Error indicates an expected call of Error.

func (*MockContextMockRecorder) File

func (mr *MockContextMockRecorder) File(arg0 any) *gomock.Call

File indicates an expected call of File.

func (*MockContextMockRecorder) FormFile

func (mr *MockContextMockRecorder) FormFile(arg0 any) *gomock.Call

FormFile indicates an expected call of FormFile.

func (*MockContextMockRecorder) FormParams

func (mr *MockContextMockRecorder) FormParams() *gomock.Call

FormParams indicates an expected call of FormParams.

func (*MockContextMockRecorder) FormValue

func (mr *MockContextMockRecorder) FormValue(arg0 any) *gomock.Call

FormValue indicates an expected call of FormValue.

func (*MockContextMockRecorder) Get

func (mr *MockContextMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockContextMockRecorder) HTML

func (mr *MockContextMockRecorder) HTML(arg0, arg1 any) *gomock.Call

HTML indicates an expected call of HTML.

func (*MockContextMockRecorder) HTMLBlob

func (mr *MockContextMockRecorder) HTMLBlob(arg0, arg1 any) *gomock.Call

HTMLBlob indicates an expected call of HTMLBlob.

func (*MockContextMockRecorder) Handler

func (mr *MockContextMockRecorder) Handler() *gomock.Call

Handler indicates an expected call of Handler.

func (*MockContextMockRecorder) Inline

func (mr *MockContextMockRecorder) Inline(arg0, arg1 any) *gomock.Call

Inline indicates an expected call of Inline.

func (*MockContextMockRecorder) IsTLS

func (mr *MockContextMockRecorder) IsTLS() *gomock.Call

IsTLS indicates an expected call of IsTLS.

func (*MockContextMockRecorder) IsWebSocket

func (mr *MockContextMockRecorder) IsWebSocket() *gomock.Call

IsWebSocket indicates an expected call of IsWebSocket.

func (*MockContextMockRecorder) JSON

func (mr *MockContextMockRecorder) JSON(arg0, arg1 any) *gomock.Call

JSON indicates an expected call of JSON.

func (*MockContextMockRecorder) JSONBlob

func (mr *MockContextMockRecorder) JSONBlob(arg0, arg1 any) *gomock.Call

JSONBlob indicates an expected call of JSONBlob.

func (*MockContextMockRecorder) JSONP

func (mr *MockContextMockRecorder) JSONP(arg0, arg1, arg2 any) *gomock.Call

JSONP indicates an expected call of JSONP.

func (*MockContextMockRecorder) JSONPBlob

func (mr *MockContextMockRecorder) JSONPBlob(arg0, arg1, arg2 any) *gomock.Call

JSONPBlob indicates an expected call of JSONPBlob.

func (*MockContextMockRecorder) JSONPretty

func (mr *MockContextMockRecorder) JSONPretty(arg0, arg1, arg2 any) *gomock.Call

JSONPretty indicates an expected call of JSONPretty.

func (*MockContextMockRecorder) Logger

func (mr *MockContextMockRecorder) Logger() *gomock.Call

Logger indicates an expected call of Logger.

func (*MockContextMockRecorder) MultipartForm

func (mr *MockContextMockRecorder) MultipartForm() *gomock.Call

MultipartForm indicates an expected call of MultipartForm.

func (*MockContextMockRecorder) NoContent

func (mr *MockContextMockRecorder) NoContent(arg0 any) *gomock.Call

NoContent indicates an expected call of NoContent.

func (*MockContextMockRecorder) Param

func (mr *MockContextMockRecorder) Param(arg0 any) *gomock.Call

Param indicates an expected call of Param.

func (*MockContextMockRecorder) ParamNames

func (mr *MockContextMockRecorder) ParamNames() *gomock.Call

ParamNames indicates an expected call of ParamNames.

func (*MockContextMockRecorder) ParamValues

func (mr *MockContextMockRecorder) ParamValues() *gomock.Call

ParamValues indicates an expected call of ParamValues.

func (*MockContextMockRecorder) Path

func (mr *MockContextMockRecorder) Path() *gomock.Call

Path indicates an expected call of Path.

func (*MockContextMockRecorder) QueryParam

func (mr *MockContextMockRecorder) QueryParam(arg0 any) *gomock.Call

QueryParam indicates an expected call of QueryParam.

func (*MockContextMockRecorder) QueryParams

func (mr *MockContextMockRecorder) QueryParams() *gomock.Call

QueryParams indicates an expected call of QueryParams.

func (*MockContextMockRecorder) QueryString

func (mr *MockContextMockRecorder) QueryString() *gomock.Call

QueryString indicates an expected call of QueryString.

func (*MockContextMockRecorder) RealIP

func (mr *MockContextMockRecorder) RealIP() *gomock.Call

RealIP indicates an expected call of RealIP.

func (*MockContextMockRecorder) Redirect

func (mr *MockContextMockRecorder) Redirect(arg0, arg1 any) *gomock.Call

Redirect indicates an expected call of Redirect.

func (*MockContextMockRecorder) Render

func (mr *MockContextMockRecorder) Render(arg0, arg1, arg2 any) *gomock.Call

Render indicates an expected call of Render.

func (*MockContextMockRecorder) Request

func (mr *MockContextMockRecorder) Request() *gomock.Call

Request indicates an expected call of Request.

func (*MockContextMockRecorder) Reset

func (mr *MockContextMockRecorder) Reset(arg0, arg1 any) *gomock.Call

Reset indicates an expected call of Reset.

func (*MockContextMockRecorder) Response

func (mr *MockContextMockRecorder) Response() *gomock.Call

Response indicates an expected call of Response.

func (*MockContextMockRecorder) Scheme

func (mr *MockContextMockRecorder) Scheme() *gomock.Call

Scheme indicates an expected call of Scheme.

func (*MockContextMockRecorder) Set

func (mr *MockContextMockRecorder) Set(arg0, arg1 any) *gomock.Call

Set indicates an expected call of Set.

func (*MockContextMockRecorder) SetCookie

func (mr *MockContextMockRecorder) SetCookie(arg0 any) *gomock.Call

SetCookie indicates an expected call of SetCookie.

func (*MockContextMockRecorder) SetHandler

func (mr *MockContextMockRecorder) SetHandler(arg0 any) *gomock.Call

SetHandler indicates an expected call of SetHandler.

func (*MockContextMockRecorder) SetLogger

func (mr *MockContextMockRecorder) SetLogger(arg0 any) *gomock.Call

SetLogger indicates an expected call of SetLogger.

func (*MockContextMockRecorder) SetParamNames

func (mr *MockContextMockRecorder) SetParamNames(arg0 ...any) *gomock.Call

SetParamNames indicates an expected call of SetParamNames.

func (*MockContextMockRecorder) SetParamValues

func (mr *MockContextMockRecorder) SetParamValues(arg0 ...any) *gomock.Call

SetParamValues indicates an expected call of SetParamValues.

func (*MockContextMockRecorder) SetPath

func (mr *MockContextMockRecorder) SetPath(arg0 any) *gomock.Call

SetPath indicates an expected call of SetPath.

func (*MockContextMockRecorder) SetRequest

func (mr *MockContextMockRecorder) SetRequest(arg0 any) *gomock.Call

SetRequest indicates an expected call of SetRequest.

func (*MockContextMockRecorder) SetResponse

func (mr *MockContextMockRecorder) SetResponse(arg0 any) *gomock.Call

SetResponse indicates an expected call of SetResponse.

func (*MockContextMockRecorder) Stream

func (mr *MockContextMockRecorder) Stream(arg0, arg1, arg2 any) *gomock.Call

Stream indicates an expected call of Stream.

func (*MockContextMockRecorder) String

func (mr *MockContextMockRecorder) String(arg0, arg1 any) *gomock.Call

String indicates an expected call of String.

func (*MockContextMockRecorder) Validate

func (mr *MockContextMockRecorder) Validate(arg0 any) *gomock.Call

Validate indicates an expected call of Validate.

func (*MockContextMockRecorder) XML

func (mr *MockContextMockRecorder) XML(arg0, arg1 any) *gomock.Call

XML indicates an expected call of XML.

func (*MockContextMockRecorder) XMLBlob

func (mr *MockContextMockRecorder) XMLBlob(arg0, arg1 any) *gomock.Call

XMLBlob indicates an expected call of XMLBlob.

func (*MockContextMockRecorder) XMLPretty

func (mr *MockContextMockRecorder) XMLPretty(arg0, arg1, arg2 any) *gomock.Call

XMLPretty indicates an expected call of XMLPretty.

Jump to

Keyboard shortcuts

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